Added more information to dynamic pages

This commit is contained in:
Nate Choe
2022-02-14 12:14:55 -06:00
parent 6825f12163
commit 92a000f474
4 changed files with 23 additions and 2 deletions

View File

@@ -23,9 +23,26 @@ typedef struct {
} Field;
/*HTTP field*/
typedef enum {
GET,
POST,
PUT,
HEAD,
DELETE,
PATCH,
OPTIONS,
INVALID
/*
* Indicates an invalid type of request, if you see this then
* something's gone terribly wrong.
* */
} RequestType;
typedef struct {
long fieldCount;
Field *fields;
char *path;
RequestType type;
} Request;
/*HTTP request, pretty self explanatory*/