#include <http_reply.hpp>
Public Member Functions | |
ReplyBuilder & | header (const std::string &name, const std::string &value) |
ReplyBuilder & | header (const HttpHeader &header) |
ReplyBuilder & | headers (const std::vector< HttpHeader > &headers) |
ReplyBuilder (HttpReply::status_type status) | |
void | write (HttpConnectionPtr connection) |
Private Attributes | |
boost::shared_ptr< std::vector < HttpHeader > > | headers_ |
HttpReply::status_type | status_ |
Object to build and send reply headers
Definition at line 87 of file http_reply.hpp.
Definition at line 397 of file http_reply.cpp.
ReplyBuilder & async_web_server_cpp::ReplyBuilder::header | ( | const std::string & | name, |
const std::string & | value | ||
) |
Add a header to the reply
Definition at line 402 of file http_reply.cpp.
ReplyBuilder & async_web_server_cpp::ReplyBuilder::header | ( | const HttpHeader & | header | ) |
Add a header to the reply
Definition at line 407 of file http_reply.cpp.
ReplyBuilder & async_web_server_cpp::ReplyBuilder::headers | ( | const std::vector< HttpHeader > & | headers | ) |
Add a group of headers to the reply
Definition at line 413 of file http_reply.cpp.
void async_web_server_cpp::ReplyBuilder::write | ( | HttpConnectionPtr | connection | ) |
Send the headers over the connection
Definition at line 419 of file http_reply.cpp.
boost::shared_ptr<std::vector<HttpHeader> > async_web_server_cpp::ReplyBuilder::headers_ [private] |
Definition at line 114 of file http_reply.hpp.
Definition at line 113 of file http_reply.hpp.