requests
This commit is contained in:
24
http/http_request.h
Normal file
24
http/http_request.h
Normal 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
|
||||
Reference in New Issue
Block a user