feat: response bodies from char buffers; generated responses
This commit is contained in:
parent
62348c14f5
commit
2fb3e2bb00
12 changed files with 163 additions and 108 deletions
6
src/http/http.c
Normal file
6
src/http/http.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "http.h"
|
||||
|
||||
// Very important that this is in the same order as http_request_method
|
||||
const char *request_method_names[] = {"GET", "POST", "PUT", "PATCH", "DELETE"};
|
||||
const size_t request_method_names_len =
|
||||
sizeof(request_method_names) / sizeof(request_method_names[0]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue