dot-xx
A personal collection of small C++ modules
Loading...
Searching...
No Matches
dxx::http::Response Struct Referenceexport
module dxx.http

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.

Detailed Description

Server's response to the client.

The response constructor that needs to be converted into a string to be sent over the network

Member Data Documentation

◆ status

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


The documentation for this struct was generated from the following file:
  • /build-llvm-libcpp/_deps/dot-xx-http-src/src/message.xx