C++ Actor Framework 1.0.0
|
Handle type (implicitly shared) that represents an HTTP server response. More...
#include <response.hpp>
Public Types | |
using | fields_map = unordered_flat_map<std::string, std::string> |
Public Member Functions | |
response (status code, fields_map fields, byte_buffer body) | |
status | code () const |
Returns the HTTP status code. | |
span< const std::pair< std::string, std::string > > | header_fields () const |
Returns the HTTP header fields. | |
const_byte_span | body () const |
Returns the HTTP body (payload). | |
Handle type (implicitly shared) that represents an HTTP server response.