|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
#include <h2_client.h>
Data Fields | |
| int(* | on_send )(KlH2ClientSession *s, const void *data, size_t len) |
| void(* | on_response )(KlH2ClientSession *s, int32_t stream_id, int status, const KlH2ClientHeader *hdrs, int n) |
| void(* | on_data )(KlH2ClientSession *s, int32_t stream_id, const char *data, size_t len) |
| void(* | on_stream_close )(KlH2ClientSession *s, int32_t stream_id, int err) |
| int(* KlH2ClientCallbacks::on_send) (KlH2ClientSession *s, const void *data, size_t len) |
Session has data to send to the network.
| void(* KlH2ClientCallbacks::on_response) (KlH2ClientSession *s, int32_t stream_id, int status, const KlH2ClientHeader *hdrs, int n) |
Response headers received for a stream.
| void(* KlH2ClientCallbacks::on_data) (KlH2ClientSession *s, int32_t stream_id, const char *data, size_t len) |
Response body data received for a stream.
| void(* KlH2ClientCallbacks::on_stream_close) (KlH2ClientSession *s, int32_t stream_id, int err) |
Stream closed (0 = no error).