Working on http thread loops

This commit is contained in:
2014-09-02 22:12:58 +01:00
parent e15e94dad2
commit 565bb6df30
11 changed files with 242 additions and 176 deletions

View File

@@ -45,7 +45,7 @@ extern "C" {
} http_request_method;
typedef enum http_version {
HTTP10, HTTP11
HTTP10, HTTP11, HTTPXX
} http_version;
typedef struct http_request_line {
@@ -83,18 +83,15 @@ extern "C" {
http_request_line *req;
http_request_parsestatus parsestatus;
http_header_list *headers;
http_body_type body_type;
http_body body;
http_body *body;
struct http_request *next;
} http_request;
typedef struct http_response {
http_response_line *resp;
http_header_list *headers;
bool body_chunked;
http_body_type body_type;
http_body body;
http_body *body;
struct http_response *next;
} http_response;