|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
#include <h2_client.h>

Data Fields | |
| int(* | recv )(KlH2ClientSession *self, const char *data, size_t len) |
| int32_t(* | submit_request )(KlH2ClientSession *self, const char *method, const char *path, const char *authority, const KlH2ClientHeader *hdrs, int n, const char *body, size_t body_len) |
| int(* | flush )(KlH2ClientSession *self) |
| void(* | destroy )(KlH2ClientSession *self) |
| KlH2ClientCallbacks | keel_cbs |
| void * | keel_ctx |
| int(* KlH2ClientSession::recv) (KlH2ClientSession *self, const char *data, size_t len) |
Feed received network data into the session.
| int32_t(* KlH2ClientSession::submit_request) (KlH2ClientSession *self, const char *method, const char *path, const char *authority, const KlH2ClientHeader *hdrs, int n, const char *body, size_t body_len) |
Submit an HTTP/2 request, returns stream ID or -1.
| int(* KlH2ClientSession::flush) (KlH2ClientSession *self) |
Flush pending output (triggers on_send callbacks).
| void(* KlH2ClientSession::destroy) (KlH2ClientSession *self) |
Destroy session and free resources.
| KlH2ClientCallbacks KlH2ClientSession::keel_cbs |
KEEL-managed: set by kl_h2_client_connect.
| void* KlH2ClientSession::keel_ctx |
KEEL-managed: opaque pointer to KlH2ClientConn.