diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libweb/http.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h index ddb6a89..7af66b5 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -16,7 +16,8 @@ struct http_payload { HTTP_OP_GET, HTTP_OP_POST, - HTTP_OP_HEAD + HTTP_OP_HEAD, + HTTP_OP_PUT } op; const char *resource; @@ -30,7 +31,6 @@ struct http_payload { struct http_post { - bool expect_continue; const char *data; size_t nfiles, npairs; @@ -44,6 +44,11 @@ struct http_payload const char *name, *tmpname, *filename; } *files; } post; + + struct http_put + { + const char *tmpname; + } put; } u; const struct http_arg @@ -53,6 +58,7 @@ struct http_payload size_t n_args, n_headers; const struct http_header *headers; + bool expect_continue; }; #define HTTP_STATUSES \ |
