From 30458088f0f6acbb9581fecd2aa39d97c13d7373 Mon Sep 17 00:00:00 2001 From: cflip Date: Sat, 27 May 2023 11:50:37 -0600 Subject: Load and serve files from the filesystem --- http.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index b39e271..1e97820 100644 --- a/http.h +++ b/http.h @@ -1,7 +1,10 @@ #ifndef _H_HTTP #define _H_HTTP +#include + #define CFWS_MAXURI 128 +#define CFWS_MAX_RESPONSE 4096 enum http_req_method { HTTP_METHOD_GET @@ -20,6 +23,6 @@ struct http_request { struct http_request http_parse_request(const char *); void http_free_request(struct http_request *); -void http_build_response(char **, enum http_res_code, const char *); +int http_build_response(char *, enum http_res_code, const char *, size_t); #endif -- cgit v1.2.3