26 lines
532 B
C
26 lines
532 B
C
#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);
|
|
void free_request(HttpRequest *__req);
|
|
|
|
#endif
|