#include <http_reply.hpp>
Public Member Functions | |
FilesystemHttpRequestHandler (HttpReply::status_type status, const std::string &path_root, const std::string &filesystem_root, bool list_directories, const std::vector< HttpHeader > &headers) | |
bool | operator() (const HttpRequest &, boost::shared_ptr< HttpConnection >, const char *begin, const char *end) |
Private Attributes | |
boost::filesystem::path | filesystem_root_ |
std::vector< HttpHeader > | headers_ |
bool | list_directories_ |
std::string | path_root_ |
HttpReply::status_type | status_ |
Request Handler that serves a responses from the filesystem from a base path
Definition at line 156 of file http_reply.hpp.
async_web_server_cpp::FilesystemHttpRequestHandler::FilesystemHttpRequestHandler | ( | HttpReply::status_type | status, |
const std::string & | path_root, | ||
const std::string & | filesystem_root, | ||
bool | list_directories, | ||
const std::vector< HttpHeader > & | headers | ||
) |
Definition at line 294 of file http_reply.cpp.
bool async_web_server_cpp::FilesystemHttpRequestHandler::operator() | ( | const HttpRequest & | request, |
boost::shared_ptr< HttpConnection > | connection, | ||
const char * | begin, | ||
const char * | end | ||
) |
Definition at line 303 of file http_reply.cpp.
boost::filesystem::path async_web_server_cpp::FilesystemHttpRequestHandler::filesystem_root_ [private] |
Definition at line 171 of file http_reply.hpp.
std::vector<HttpHeader> async_web_server_cpp::FilesystemHttpRequestHandler::headers_ [private] |
Definition at line 169 of file http_reply.hpp.
Definition at line 172 of file http_reply.hpp.
std::string async_web_server_cpp::FilesystemHttpRequestHandler::path_root_ [private] |
Definition at line 170 of file http_reply.hpp.
Definition at line 168 of file http_reply.hpp.