25#ifndef PROTOCORE_H3_CONN_H
26#define PROTOCORE_H3_CONN_H
30#if PROTOCORE_ENABLE_HTTP3
43typedef void (*H3RequestFn)(
void *app, uint8_t *h3, uint64_t stream_id,
const char *method,
const char *path,
44 const char *authority,
const uint8_t *body,
size_t body_len);
55 H3RequestFn on_request;
64 const char *content_type;
105 H3ConnAppArgs app_args;
106 H3ConnRespondArgs respond_args;
111extern H3ConnVars H3ConnV;
116 void (*
const init)(uint8_t *work);
117 void (*
const respond)(uint8_t *work);
122void protocore_h3_conn_init(uint8_t *work);
123void protocore_h3_conn_respond(uint8_t *work);
129static const H3ConnNs H3Conn __attribute__((unused)) = {
130 .init = protocore_h3_conn_init,
131 .respond = protocore_h3_conn_respond,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS