Public Member Functions | Private Attributes | List of all members
async_web_server_cpp::FilesystemHttpRequestHandler Class Reference

#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< HttpHeaderheaders_
 
bool list_directories_
 
std::string path_root_
 
HttpReply::status_type status_
 

Detailed Description

Request Handler that serves a responses from the filesystem from a base path

Definition at line 163 of file http_reply.hpp.

Constructor & Destructor Documentation

◆ FilesystemHttpRequestHandler()

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 322 of file http_reply.cpp.

Member Function Documentation

◆ operator()()

bool async_web_server_cpp::FilesystemHttpRequestHandler::operator() ( const HttpRequest request,
boost::shared_ptr< HttpConnection connection,
const char *  begin,
const char *  end 
)

Definition at line 331 of file http_reply.cpp.

Member Data Documentation

◆ filesystem_root_

boost::filesystem::path async_web_server_cpp::FilesystemHttpRequestHandler::filesystem_root_
private

Definition at line 179 of file http_reply.hpp.

◆ headers_

std::vector<HttpHeader> async_web_server_cpp::FilesystemHttpRequestHandler::headers_
private

Definition at line 177 of file http_reply.hpp.

◆ list_directories_

bool async_web_server_cpp::FilesystemHttpRequestHandler::list_directories_
private

Definition at line 180 of file http_reply.hpp.

◆ path_root_

std::string async_web_server_cpp::FilesystemHttpRequestHandler::path_root_
private

Definition at line 178 of file http_reply.hpp.

◆ status_

HttpReply::status_type async_web_server_cpp::FilesystemHttpRequestHandler::status_
private

Definition at line 176 of file http_reply.hpp.


The documentation for this class was generated from the following files:


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06