feat: response bodies from char buffers; generated responses

This commit is contained in:
Jef Roosens 2023-05-29 11:36:57 +02:00
parent 62348c14f5
commit 2fb3e2bb00
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
12 changed files with 163 additions and 108 deletions

6
src/http/http.c Normal file
View 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]);