#include <http_reply.hpp>
Public Member Functions | |
FileHttpRequestHandler (HttpReply::status_type status, const std::string &filename, const std::vector< HttpHeader > &headers) | |
bool | operator() (const HttpRequest &, boost::shared_ptr< HttpConnection >, const char *begin, const char *end) |
Private Attributes | |
std::string | filename_ |
std::vector< HttpHeader > | headers_ |
HttpReply::status_type | status_ |
Request Handler that serves a response from a file
Definition at line 144 of file http_reply.hpp.
async_web_server_cpp::FileHttpRequestHandler::FileHttpRequestHandler | ( | HttpReply::status_type | status, |
const std::string & | filename, | ||
const std::vector< HttpHeader > & | headers | ||
) |
Definition at line 249 of file http_reply.cpp.
bool async_web_server_cpp::FileHttpRequestHandler::operator() | ( | const HttpRequest & | request, |
boost::shared_ptr< HttpConnection > | connection, | ||
const char * | begin, | ||
const char * | end | ||
) |
Definition at line 307 of file http_reply.cpp.
|
private |
Definition at line 157 of file http_reply.hpp.
|
private |
Definition at line 156 of file http_reply.hpp.
|
private |
Definition at line 155 of file http_reply.hpp.