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

Per-request streaming configuration. More...

#include <client.h>

Collaboration diagram for KlClientStreamCfg:
Collaboration graph
[legend]

Data Fields

KlClientBodyFn on_body
 
KlClientHeadersFn on_headers
 
void(* on_complete )(void *user_data)
 
KlClientReadFn body_read
 
void * user_data
 

Detailed Description

Per-request streaming configuration.

When stream is non-NULL and on_body is set, response body chunks are pushed via on_body instead of being accumulated into KlClientResponse.body.

When body_read is set, the request body is pulled via body_read and sent with Transfer-Encoding: chunked (body/body_len parameters are ignored).

Field Documentation

◆ on_body

KlClientBodyFn KlClientStreamCfg::on_body

Response body callback (NULL = buffer)

◆ on_headers

KlClientHeadersFn KlClientStreamCfg::on_headers

NULL = skip

◆ on_complete

void(* KlClientStreamCfg::on_complete) (void *user_data)

NULL = skip

◆ body_read

KlClientReadFn KlClientStreamCfg::body_read

Request body pull callback (NULL = use body/body_len)

◆ user_data

void* KlClientStreamCfg::user_data

shared across all callbacks


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