KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlH2ClientSession Struct Reference

#include <h2_client.h>

Collaboration diagram for KlH2ClientSession:
Collaboration graph
[legend]

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
 

Field Documentation

◆ recv

int(* KlH2ClientSession::recv) (KlH2ClientSession *self, const char *data, size_t len)

Feed received network data into the session.

◆ submit_request

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.

◆ flush

int(* KlH2ClientSession::flush) (KlH2ClientSession *self)

Flush pending output (triggers on_send callbacks).

◆ destroy

void(* KlH2ClientSession::destroy) (KlH2ClientSession *self)

Destroy session and free resources.

◆ keel_cbs

KlH2ClientCallbacks KlH2ClientSession::keel_cbs

KEEL-managed: set by kl_h2_client_connect.

◆ keel_ctx

void* KlH2ClientSession::keel_ctx

KEEL-managed: opaque pointer to KlH2ClientConn.


The documentation for this struct was generated from the following file: