From 8724eb379bcda51e7a9ecaaa6698a699ac042621 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 8 Jun 2023 14:49:35 -0600 Subject: Parse HTTP POST requests and request body --- http.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index 90bd4f3..caeb28d 100644 --- a/http.h +++ b/http.h @@ -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 *); -- cgit v1.2.3