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

Manages an HTTP/3 session over a QUIC connection. More...

#include <QuicHttp3Session.hpp>

Public Member Functions

 QuicHttp3Session (QuicConnection &quic_conn)
 Constructs a QuicHttp3Session.
 
 ~QuicHttp3Session ()
 
bool init ()
 Initializes the HTTP/3 session.
 
nghttp3_conn * get_conn () const
 Gets the underlying nghttp3 connection.
 
int process_stream_data (int64_t stream_id, const uint8_t *data, size_t datalen, bool fin)
 Processes received QUIC stream data for HTTP/3.
 
int write_streams ()
 Serializes HTTP/3 frames and feeds them to ngtcp2.
 

Detailed Description

Manages an HTTP/3 session over a QUIC connection.

Constructor & Destructor Documentation

◆ QuicHttp3Session()

server::QuicHttp3Session::QuicHttp3Session ( QuicConnection quic_conn)
explicit

Constructs a QuicHttp3Session.

Parameters
quic_connThe underlying QUIC connection.

◆ ~QuicHttp3Session()

server::QuicHttp3Session::~QuicHttp3Session ( )

Member Function Documentation

◆ get_conn()

nghttp3_conn * server::QuicHttp3Session::get_conn ( ) const
inline

Gets the underlying nghttp3 connection.

Returns
Pointer to nghttp3_conn.

◆ init()

bool server::QuicHttp3Session::init ( )

Initializes the HTTP/3 session.

Returns
true on success, false otherwise.

◆ process_stream_data()

int server::QuicHttp3Session::process_stream_data ( int64_t  stream_id,
const uint8_t *  data,
size_t  datalen,
bool  fin 
)

Processes received QUIC stream data for HTTP/3.

Parameters
stream_idThe QUIC stream ID.
dataThe stream data.
datalenThe length of the data.
finWhether this is the final data for the stream.
Returns
0 on success, or a negative error code.

◆ write_streams()

int server::QuicHttp3Session::write_streams ( )

Serializes HTTP/3 frames and feeds them to ngtcp2.

Returns
0 on success, or a negative error code.

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