C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::http::response Class Reference

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).
 

Detailed Description

Handle type (implicitly shared) that represents an HTTP server response.


The documentation for this class was generated from the following files: