From b9d9328956c656f0e9a007b8810cadafbe531c48 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 6 Oct 2025 23:01:42 +0200 Subject: WIP chunk encoding --- include/libweb/http.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libweb/http.h b/include/libweb/http.h index 87edf8a..c5dff9d 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -109,15 +109,17 @@ struct http_response unsigned long long n; size_t n_headers; void (*free)(void *); - void *step_args; + void *args; union http_step { int (*length)(unsigned long long len, const struct http_cookie *c, - struct http_response *r, void *user, void *step_args); + struct http_response *r, void *user, void *args); int (*payload)(const struct http_payload *p, struct http_response *r, - void *user, void *step_args); + void *user, void *args); } step; + + int (*chunk)(void *buf, size_t n, bool *done, void *user, void *args); }; struct http_cfg -- cgit v1.2.3