This commit is contained in:
cdricms
2024-11-19 16:28:54 +01:00
parent a4f779d5d7
commit 7b52f5de7d
7 changed files with 71 additions and 33 deletions

View File

@@ -2,9 +2,11 @@
#define HTTP_RESPONSE_H
#include "http_content_type.h"
#include "http_server.h"
#include "http_status.h"
#include <stdbool.h>
#include <stddef.h>
#include <sys/wait.h>
typedef struct {
HttpStatus status_code;
@@ -26,5 +28,6 @@ char *read_file(const char *__path);
// Given a path will return a HttpResponse
HttpResponse *from_file(const char *__path);
void free_response(HttpResponse *__res);
HttpServerRunStatus cgi(const char *__path, int clientfd);
#endif