This commit is contained in:
cdricms
2024-11-07 12:02:29 +01:00
parent 658fe48bb8
commit 0970740e31
14 changed files with 732 additions and 72 deletions

24
http/http_request.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef HTTP_REQUEST_H
#define HTTP_REQUEST_H
#include "http_content_type.h"
#include "http_method.h"
typedef struct {
HttpMethod method;
char *path;
char *host;
char *sec_fetch_dest;
char *user_agent;
char *upgrade_insecure_requests;
HttpContentType *accept;
char *sec_fetch_site;
char *sec_fetch_mode;
char *accept_language;
char *accept_encoding;
char *connection;
} HttpRequest;
HttpRequest *handle_request(char *__req);
void print_request(const HttpRequest *__req);
#endif