hermes

HTTP GET/HEAD-only web server for static content.
git clone https://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 983401f647a256d9432734ad1ff8b3ebf97dc80b
parent 3a5877e0522894112430811a6e0d30ce3c9943a8
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Sun, 30 Mar 2025 18:54:07 +0200

feat: add http_response struct

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mhttp.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/http.h b/http.h @@ -54,4 +54,11 @@ struct http_request { char path[HTTP_REQUEST_PATH_MAX_LENGTH]; }; +struct http_response { + enum http_response_status status; + const char *content_type; + char *body; + size_t body_length; +}; + #endif