Created
September 18, 2017 05:38
-
-
Save ikariiin/d3bd839622d69dc082258730f15c9b20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct { | |
char *raw_headers; | |
char headers[128][512][512]; | |
} HTTPrequest; | |
void parser_init(char *raw_headers) { | |
char *token, *key_value = NULL; | |
token = strtok(raw_headers, "\r\n"); | |
int line_counter = 1; | |
//HTTPrequest request; | |
//request.raw_headers = raw_headers; | |
while (token) { | |
char *line = token; | |
if(line_counter != 1) { | |
} | |
token = strtok(NULL, "\r\n"); | |
line_counter++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment