aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-06 23:01:42 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-07 12:43:25 +0200
commitb9d9328956c656f0e9a007b8810cadafbe531c48 (patch)
tree028ad88fd37551fcd6ad0bf29a3ce9af745e687c /include
parentdb9cb051c4ee05c07ab32dfed5bae8b7dc0916bd (diff)
downloadlibweb-chunk.tar.gz
WIP chunk encodingchunk
Diffstat (limited to 'include')
-rw-r--r--include/libweb/http.h8
1 files changed, 5 insertions, 3 deletions
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