C++ Actor Framework 1.0.0
|
Implements the server part for the HTTP Protocol as defined in RFC 7231. More...
#include <server.hpp>
Public Types | |
using | upper_layer_ptr = std::unique_ptr<http::upper_layer::server> |
Public Member Functions | |
virtual size_t | max_request_size () const noexcept=0 |
virtual void | max_request_size (size_t value) noexcept=0 |
Public Member Functions inherited from caf::net::octet_stream::upper_layer | |
virtual error | start (lower_layer *down)=0 |
Initializes the upper layer. | |
virtual ptrdiff_t | consume (byte_span buffer, byte_span delta)=0 |
Consumes bytes from the lower layer. | |
virtual void | written (size_t num_bytes) |
Called from the lower layer whenever data has been written. | |
Public Member Functions inherited from caf::net::generic_upper_layer | |
virtual void | prepare_send ()=0 |
Gives the upper layer an opportunity to add additional data to the output buffer. | |
virtual bool | done_sending ()=0 |
Queries whether all pending data has been sent. | |
virtual void | abort (const error &reason)=0 |
Called by the lower layer for cleaning up any state in case of an error or when disposed. | |
Static Public Member Functions | |
static std::unique_ptr< server > | make (upper_layer_ptr up) |
Implements the server part for the HTTP Protocol as defined in RFC 7231.