An HTTP web application that merges environment configuration documentation for serving. More...
#include <ConfigurationWebApp.hpp>
Public Member Functions | |
void | handleGetRequest (Network::Http::HttpSession &session, const Network::StringRequest &request, std::map< std::string, std::string > &variables) override |
Handle a GET request. More... | |
void | handleHeadRequest (Network::Http::HttpSession &session, const Network::StringRequest &request, std::map< std::string, std::string > &variables) override |
Handle a HEAD request. More... | |
void | handlePostRequest (Network::Http::HttpSession &session, const Network::StringRequest &request, std::map< std::string, std::string > &variables) override |
Handle a POST request. More... | |
Public Member Functions inherited from HttpWebApp | |
virtual | ~HttpWebApp ()=default |
Destroy the HTTP web application instance. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from HttpWebApp | |
static EmptyResponse | createBadRequestHeadResponse (HttpSession &session, const StringRequest &request) |
Create a bad request response for a head request. More... | |
static StringResponse | createBadRequestResponse (HttpSession &session, const StringRequest &request, std::string_view errorMessage) |
Create a bad request response. More... | |
static EmptyResponse | createNotFoundHeadResponse (HttpSession &session, const StringRequest &request) |
Create a not found response for a head request. More... | |
static StringResponse | createNotFoundStringResponse (HttpSession &session, const StringRequest &request) |
Create a not found response. More... | |
static EmptyResponse | createOkHeadResponse (HttpSession &session, const StringRequest &request) |
Create an empty 200 response for a head request. More... | |
static StringResponse | createOkResponse (HttpSession &session, const StringRequest &request) |
Create an empty 200 response. More... | |
static EmptyResponse | createPermanentRedirectResponse (HttpSession &session, const StringRequest &request, std::string_view location) |
Create a permanent redirect response. More... | |
static EmptyResponse | createRedirectResponse (HttpSession &session, const StringRequest &request, std::string_view location) |
Create a redirect response. More... | |
static EmptyResponse | createServerErrorHeadResponse (HttpSession &session, const StringRequest &request) |
Create a server error response for a head request. More... | |
static StringResponse | createServerErrorResponse (HttpSession &session, const StringRequest &request, std::string_view errorMessage) |
Create a server error response. More... | |
template<typename WebAppT > | |
static void | registerHttpWebApp (const std::string &name) |
Register an HTTP web application. More... | |
An HTTP web application that merges environment configuration documentation for serving.
|
overridevirtual |
Handle a GET request.
The supplied session provides shared server state and the sendResponse method.
session | the HTTP session object, also containing the client session |
request | the HTTP request object |
variables | the request variables that are generated and consumed during the request |
Implements HttpWebApp.
|
overridevirtual |
Handle a HEAD request.
The supplied session provides shared server state and the sendResponse method.
session | the HTTP session object, also containing the client session |
request | the HTTP request object |
variables | the request variables that are generated and consumed during the request |
Implements HttpWebApp.
|
overridevirtual |
Handle a POST request.
The supplied session provides shared server state and the sendResponse method.
session | the HTTP session object, also containing the client session |
request | the HTTP request object |
variables | the request variables that are generated and consumed during the request |
Implements HttpWebApp.