#include <http_reply.hpp>
Public Member Functions | |
ReplyBuilder & | header (const HttpHeader &header) |
ReplyBuilder & | header (const std::string &name, const std::string &value) |
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 93 of file http_reply.hpp.
async_web_server_cpp::ReplyBuilder::ReplyBuilder | ( | HttpReply::status_type | status | ) |
Definition at line 452 of file http_reply.cpp.
ReplyBuilder & async_web_server_cpp::ReplyBuilder::header | ( | const HttpHeader & | header | ) |
Add a header to the reply
Definition at line 463 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 457 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 469 of file http_reply.cpp.
void async_web_server_cpp::ReplyBuilder::write | ( | HttpConnectionPtr | connection | ) |
Send the headers over the connection
Definition at line 475 of file http_reply.cpp.
|
private |
Definition at line 120 of file http_reply.hpp.
|
private |
Definition at line 119 of file http_reply.hpp.