|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
Per-request streaming configuration. More...
#include <client.h>

Data Fields | |
| KlClientBodyFn | on_body |
| KlClientHeadersFn | on_headers |
| void(* | on_complete )(void *user_data) |
| KlClientReadFn | body_read |
| void * | user_data |
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).
| KlClientBodyFn KlClientStreamCfg::on_body |
Response body callback (NULL = buffer)
| KlClientHeadersFn KlClientStreamCfg::on_headers |
NULL = skip
| void(* KlClientStreamCfg::on_complete) (void *user_data) |
NULL = skip
| KlClientReadFn KlClientStreamCfg::body_read |
Request body pull callback (NULL = use body/body_len)
| void* KlClientStreamCfg::user_data |
shared across all callbacks