|
Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
|
Manages an HTTP/2 session over a connection. More...
#include <Http2Session.hpp>
Public Member Functions | |
| Http2Session (server::Connection &connection, const routing::Router &router, concurrency::ThreadPool &thread_pool) | |
| ~Http2Session () | |
| void | process_data (const uint8_t *data, size_t len) |
| void | send_pending () |
| void | submit_response (int32_t stream_id, const http::HttpResponse &response, bool has_body) |
| Thread-safe API to submit an HTTP/2 response. | |
| void | submit_data (int32_t stream_id) |
| void | end_stream (int32_t stream_id) |
| server::Connection & | get_connection () |
Manages an HTTP/2 session over a connection.
| http::h2::Http2Session::Http2Session | ( | server::Connection & | connection, |
| const routing::Router & | router, | ||
| concurrency::ThreadPool & | thread_pool | ||
| ) |
| http::h2::Http2Session::~Http2Session | ( | ) |
| void http::h2::Http2Session::end_stream | ( | int32_t | stream_id | ) |
|
inline |
| void http::h2::Http2Session::process_data | ( | const uint8_t * | data, |
| size_t | len | ||
| ) |
| void http::h2::Http2Session::send_pending | ( | ) |
| void http::h2::Http2Session::submit_data | ( | int32_t | stream_id | ) |
| void http::h2::Http2Session::submit_response | ( | int32_t | stream_id, |
| const http::HttpResponse & | response, | ||
| bool | has_body | ||
| ) |
Thread-safe API to submit an HTTP/2 response.
| stream_id | The HTTP/2 stream identifier. |
| response | The HttpResponse to send. |
| has_body | True if the response includes a body. |