Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
http::h2::Http2Session Class Reference

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::Connectionget_connection ()
 

Detailed Description

Manages an HTTP/2 session over a connection.

Constructor & Destructor Documentation

◆ Http2Session()

http::h2::Http2Session::Http2Session ( server::Connection connection,
const routing::Router router,
concurrency::ThreadPool thread_pool 
)

◆ ~Http2Session()

http::h2::Http2Session::~Http2Session ( )

Member Function Documentation

◆ end_stream()

void http::h2::Http2Session::end_stream ( int32_t  stream_id)

◆ get_connection()

server::Connection & http::h2::Http2Session::get_connection ( )
inline

◆ process_data()

void http::h2::Http2Session::process_data ( const uint8_t *  data,
size_t  len 
)

◆ send_pending()

void http::h2::Http2Session::send_pending ( )

◆ submit_data()

void http::h2::Http2Session::submit_data ( int32_t  stream_id)

◆ submit_response()

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.

Parameters
stream_idThe HTTP/2 stream identifier.
responseThe HttpResponse to send.
has_bodyTrue if the response includes a body.

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