This commit is contained in:
cdricms
2024-10-28 12:06:06 +01:00
commit 658fe48bb8
9 changed files with 569 additions and 0 deletions

18
http/http_response.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef HTTP_RESPONSE_H
#define HTTP_RESPONSE_H
#include "http_content_type.h"
#include "http_status.h"
#include <stdbool.h>
#include <stddef.h>
typedef struct {
HttpStatus status_code;
HttpContentType content_type;
size_t content_length;
char *body;
} HttpResponse;
bool construct_response(HttpResponse __res, char *out);
#endif