Added url variables, removed exec pages

This commit is contained in:
Nate Choe
2022-02-20 21:43:19 -06:00
parent 458c0a545d
commit 4366c8ad65
13 changed files with 202 additions and 98 deletions

View File

@@ -38,10 +38,30 @@ typedef enum {
* */
} RequestType;
typedef struct {
char *data;
/* data is guarunteed to be NULL terminated, although not necessarily
* once. */
size_t len;
size_t allocatedLen;
/* The amount of bytes allocated, for internal use. */
} BinaryString;
typedef struct {
BinaryString var;
BinaryString value;
} PathField;
typedef struct {
BinaryString path;
long fieldCount;
PathField *fields;
} Path;
typedef struct {
long fieldCount;
Field *fields;
char *path;
Path path;
RequestType type;
} Request;
/*HTTP request, pretty self explanatory*/