diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libweb/http.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h index f18b5c4..87edf8a 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -109,7 +109,15 @@ struct http_response unsigned long long n; size_t n_headers; void (*free)(void *); - int (*step)(const struct http_payload *, struct http_response *, void *); + void *step_args; + + union http_step + { + int (*length)(unsigned long long len, const struct http_cookie *c, + struct http_response *r, void *user, void *step_args); + int (*payload)(const struct http_payload *p, struct http_response *r, + void *user, void *step_args); + } step; }; struct http_cfg |
