aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libweb/handler.h1
-rw-r--r--include/libweb/http.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/libweb/handler.h b/include/libweb/handler.h
index 493e24c..72ef1e0 100644
--- a/include/libweb/handler.h
+++ b/include/libweb/handler.h
@@ -14,6 +14,7 @@ struct handler_cfg
struct http_response *r, void *user);
void *user;
size_t max_headers;
+ struct http_cfg_post post;
};
struct handler *handler_alloc(const struct handler_cfg *cfg);
diff --git a/include/libweb/http.h b/include/libweb/http.h
index 7af66b5..4e80570 100644
--- a/include/libweb/http.h
+++ b/include/libweb/http.h
@@ -106,6 +106,11 @@ struct http_cfg
const char *tmpdir;
void *user;
size_t max_headers;
+
+ struct http_cfg_post
+ {
+ size_t max_pairs, max_files;
+ } post;
};
struct http_ctx *http_alloc(const struct http_cfg *cfg);