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

#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)
 

Field Documentation

◆ on_send

int(* KlH2ClientCallbacks::on_send) (KlH2ClientSession *s, const void *data, size_t len)

Session has data to send to the network.

◆ on_response

void(* KlH2ClientCallbacks::on_response) (KlH2ClientSession *s, int32_t stream_id, int status, const KlH2ClientHeader *hdrs, int n)

Response headers received for a stream.

◆ on_data

void(* KlH2ClientCallbacks::on_data) (KlH2ClientSession *s, int32_t stream_id, const char *data, size_t len)

Response body data received for a stream.

◆ on_stream_close

void(* KlH2ClientCallbacks::on_stream_close) (KlH2ClientSession *s, int32_t stream_id, int err)

Stream closed (0 = no error).


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