aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libweb/http.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h
index 87edf8a..dab19df 100644
--- a/include/libweb/http.h
+++ b/include/libweb/http.h
@@ -109,14 +109,15 @@ struct http_response
unsigned long long n;
size_t n_headers;
void (*free)(void *);
- void *step_args;
+ void *args;
+ int (*chunk)(void *buf, size_t n, bool *done, void *user, 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;
};