24#ifndef DETERMINISTICESPASYNCWEBSERVER_H3_CONN_H
25#define DETERMINISTICESPASYNCWEBSERVER_H3_CONN_H
36#ifndef DETWS_H3_STREAM_BUF
37#define DETWS_H3_STREAM_BUF 2048
39#ifndef DETWS_H3_METHOD_LEN
40#define DETWS_H3_METHOD_LEN 16
42#ifndef DETWS_H3_PATH_LEN
43#define DETWS_H3_PATH_LEN 256
45#ifndef DETWS_H3_AUTHORITY_LEN
46#define DETWS_H3_AUTHORITY_LEN 128
55typedef void (*H3RequestFn)(
void *app, H3Conn *h3, uint64_t stream_id,
const char *method,
const char *path,
56 const char *authority,
const uint8_t *body,
size_t body_len);
59enum class H3StreamRole : uint8_t
76 uint8_t buf[DETWS_H3_STREAM_BUF];
78 char method[DETWS_H3_METHOD_LEN];
79 char path[DETWS_H3_PATH_LEN];
80 char authority[DETWS_H3_AUTHORITY_LEN];
89 H3RequestFn on_request;
91 H3Settings peer_settings;
104void h3_conn_init(H3Conn *h3, QuicConn *qc, H3RequestFn on_request,
void *app);
111bool h3_conn_respond(H3Conn *h3, uint64_t stream_id,
int status,
const char *content_type,
const uint8_t *body,
User-facing configuration for DeterministicESPAsyncWebServer.
#define DETWS_H3_MAX_STREAMS
Maximum concurrent request streams per HTTP/3 connection.
HTTP/3 framing (RFC 9114 sec 7) over QUIC varints.
Stateful QUIC v1 server connection engine (RFC 9000 / RFC 9001).