22#ifndef PROTOCORE_H2_SERVER_H
23#define PROTOCORE_H2_SERVER_H
27#if PROTOCORE_ENABLE_HTTP2 && PROTOCORE_ENABLE_TLS
35 const char *content_type;
67 void (*
const open)(uint8_t *work);
68 void (*
const data)(uint8_t *work);
69 void (*
const respond)(uint8_t *work);
70 void (*
const close)(uint8_t *work);
75extern H2ServerNs H2Server;
78uint8_t *protocore_h2_server_span(
void);
86proto_bool protocore_h2_server_respond(uint8_t slot,
int code,
const char *content_type,
const char *body,
size_t len);
#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