#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 138 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 260 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 279 of file http_reply.cpp.
std::string async_web_server_cpp::FileHttpRequestHandler::filename_ [private] |
Definition at line 150 of file http_reply.hpp.
std::vector<HttpHeader> async_web_server_cpp::FileHttpRequestHandler::headers_ [private] |
Definition at line 149 of file http_reply.hpp.
Definition at line 148 of file http_reply.hpp.