diff options
author | cflip <cflip@cflip.net> | 2023-06-08 14:49:35 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-06-08 14:49:35 -0600 |
commit | 8724eb379bcda51e7a9ecaaa6698a699ac042621 (patch) | |
tree | 2605288870ee94365c805b2f7582ff80d66ccbb2 /http.h | |
parent | eb7a9ca573c24f09d3cc2d3485af848c914aedac (diff) |
Parse HTTP POST requests and request body
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,7 +8,8 @@ enum http_req_method { HTTP_METHOD_UNKNOWN, - HTTP_METHOD_GET + HTTP_METHOD_GET, + HTTP_METHOD_POST }; enum http_res_code { @@ -22,6 +23,7 @@ struct http_request { int method; char *uri; char *query_str; + char *body; }; struct http_request http_parse_request(const char *); |