summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-05-27 11:50:37 -0600
committercflip <cflip@cflip.net>2023-05-27 11:50:37 -0600
commit30458088f0f6acbb9581fecd2aa39d97c13d7373 (patch)
tree71ee8fc561a3ee3be1e674cdb9db1c3a600080f6 /http.h
parent7f1d6bbc335288df1e24e7c8f305c32afe6b050a (diff)
Load and serve files from the filesystem
Diffstat (limited to 'http.h')
-rw-r--r--http.h5
1 files changed, 4 insertions, 1 deletions
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 <stddef.h>
+
#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