Manages an HTTP/3 session over a QUIC connection.
More...
#include <QuicHttp3Session.hpp>
Manages an HTTP/3 session over a QUIC connection.
◆ QuicHttp3Session()
| server::QuicHttp3Session::QuicHttp3Session |
( |
QuicConnection & |
quic_conn | ) |
|
|
explicit |
Constructs a QuicHttp3Session.
- Parameters
-
| quic_conn | The underlying QUIC connection. |
◆ ~QuicHttp3Session()
| server::QuicHttp3Session::~QuicHttp3Session |
( |
| ) |
|
◆ 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_id | The QUIC stream ID. |
| data | The stream data. |
| datalen | The length of the data. |
| fin | Whether 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: