C++ Actor Framework 0.19
|
Operates on HTTP requests. More...
#include <upper_layer.hpp>
Public Member Functions | |
virtual error | start (lower_layer *down)=0 |
Initializes the upper layer. | |
virtual ptrdiff_t | consume (const request_header &hdr, const_byte_span payload)=0 |
Consumes an HTTP message. | |
![]() | |
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. | |
Operates on HTTP requests.
|
pure virtual |
Consumes an HTTP message.
hdr | The header fields for the received message. |
payload | The payload of the received message. |
Implemented in caf::net::http::router.
|
pure virtual |
Initializes the upper layer.
down | A pointer to the lower layer that remains valid for the lifetime of the upper layer. |
Implemented in caf::net::http::router.