dot-xx
A personal collection of small C++ modules
|
Server's response to the client. More...
Public Member Functions | |
std::string | pack () const |
Create the response text data. |
Public Attributes | |
std::string | protocol |
Protocol info. | |
std::variant< StatusCode, std::string > | status |
Response status. | |
std::flat_map< std::string, std::string > | headers |
Response headers. | |
std::string | body |
Response data. |
Server's response to the client.
The response constructor that needs to be converted into a string to be sent over the network
std::variant<StatusCode, std::string> dxx::http::Response::status |
Response status.
std::string variant option is available to provide support for custom non-standard responses