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

#include <http_reply.hpp>

Public Member Functions

bool operator() (const HttpRequest &, boost::shared_ptr< HttpConnection >, const char *begin, const char *end)
 
 StaticHttpRequestHandler (HttpReply::status_type status, const std::vector< HttpHeader > &headers, const std::string &content)
 

Private Attributes

const std::string content_string_
 
ReplyBuilder reply_builder_
 

Detailed Description

Request Handler that serves a predefined response

Definition at line 126 of file http_reply.hpp.

Constructor & Destructor Documentation

◆ StaticHttpRequestHandler()

async_web_server_cpp::StaticHttpRequestHandler::StaticHttpRequestHandler ( HttpReply::status_type  status,
const std::vector< HttpHeader > &  headers,
const std::string &  content 
)

Definition at line 430 of file http_reply.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 438 of file http_reply.cpp.

Member Data Documentation

◆ content_string_

const std::string async_web_server_cpp::StaticHttpRequestHandler::content_string_
private

Definition at line 138 of file http_reply.hpp.

◆ reply_builder_

ReplyBuilder async_web_server_cpp::StaticHttpRequestHandler::reply_builder_
private

Definition at line 137 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:07