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

#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< HttpHeaderheaders_
 
HttpReply::status_type status_
 

Detailed Description

Request Handler that serves a response from a file

Definition at line 144 of file http_reply.hpp.

Constructor & Destructor Documentation

◆ FileHttpRequestHandler()

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.

Member Function Documentation

◆ operator()()

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.

Member Data Documentation

◆ filename_

std::string async_web_server_cpp::FileHttpRequestHandler::filename_
private

Definition at line 157 of file http_reply.hpp.

◆ headers_

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

Definition at line 156 of file http_reply.hpp.

◆ status_

HttpReply::status_type async_web_server_cpp::FileHttpRequestHandler::status_
private

Definition at line 155 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