diff options
author | cflip <cflip@cflip.net> | 2023-05-27 11:50:37 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-05-27 11:50:37 -0600 |
commit | 30458088f0f6acbb9581fecd2aa39d97c13d7373 (patch) | |
tree | 71ee8fc561a3ee3be1e674cdb9db1c3a600080f6 /http.h | |
parent | 7f1d6bbc335288df1e24e7c8f305c32afe6b050a (diff) |
Load and serve files from the filesystem
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |