|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Classes | |
| struct | Http3HeaderBlock |
| Owns the strings an nghttp3_nv list points into. More... | |
| class | SentChunks |
| Response body bytes handed to nghttp3, kept until the peer ACKs them. More... | |
Enumerations | |
| enum class | ErrorAction { Drain , Drop , Close } |
| What happens to a connection after an ngtcp2 error. More... | |
Functions | |
| ErrorAction | on_read_error (int ngtcp2_error) |
| For a failed ngtcp2_conn_read_pkt (RFC 9000 section 10.2). | |
| ErrorAction | on_expiry_error (int ngtcp2_error) |
| bool | acceptable_first_packet (const uint8_t *data, size_t datalen) |
| Http3HeaderBlock | build_response_headers (const http::HttpResponse &response) |
|
strong |
| bool orbit::server::quic::detail::acceptable_first_packet | ( | const uint8_t * | data, |
| size_t | datalen | ||
| ) |
True if a packet whose connection ID is unknown may open a connection: a client Initial of at least 1200 bytes with a Destination Connection ID of at least 8 bytes (RFC 9000 sections 7.2 and 14.1). Anything else is dropped, so it cannot make the server allocate connection state.
| Http3HeaderBlock orbit::server::quic::detail::build_response_headers | ( | const http::HttpResponse & | response | ) |
Encodes a response's header fields: :status first, names lowercased, connection-specific fields dropped (RFC 9114 section 4.2).
| ErrorAction orbit::server::quic::detail::on_expiry_error | ( | int | ngtcp2_error | ) |
For a failed ngtcp2_conn_handle_expiry: an idle timeout ends the connection silently (RFC 9000 section 10.1); other errors close it.
| ErrorAction orbit::server::quic::detail::on_read_error | ( | int | ngtcp2_error | ) |
For a failed ngtcp2_conn_read_pkt (RFC 9000 section 10.2).