|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
#include <h2_server.h>
Data Fields | |
| int(* | on_request )(void *ud, uint32_t stream_id, const char *method, size_t method_len, const char *path, size_t path_len, const char *authority, size_t authority_len, const char **hdr_names, const char **hdr_values, const size_t *hdr_name_lens, const size_t *hdr_value_lens, int num_headers) |
| int(* | on_data )(void *ud, uint32_t stream_id, const char *data, size_t len) |
| int(* | on_stream_end )(void *ud, uint32_t stream_id) |
| void(* | on_stream_reset )(void *ud, uint32_t stream_id, uint32_t error_code) |
| ssize_t(* | send )(void *ud, const void *data, size_t len) |
| int(* KlH2ServerCallbacks::on_request) (void *ud, uint32_t stream_id, const char *method, size_t method_len, const char *path, size_t path_len, const char *authority, size_t authority_len, const char **hdr_names, const char **hdr_values, const size_t *hdr_name_lens, const size_t *hdr_value_lens, int num_headers) |
Headers received for a new stream.
| int(* KlH2ServerCallbacks::on_data) (void *ud, uint32_t stream_id, const char *data, size_t len) |
Body data received for a stream.
| int(* KlH2ServerCallbacks::on_stream_end) (void *ud, uint32_t stream_id) |
Stream fully received (END_STREAM).
| void(* KlH2ServerCallbacks::on_stream_reset) (void *ud, uint32_t stream_id, uint32_t error_code) |
Stream reset by peer.
| ssize_t(* KlH2ServerCallbacks::send) (void *ud, const void *data, size_t len) |
Write data to the network.