diff options
author | erdgeist <> | 2009-11-18 04:00:26 +0000 |
---|---|---|
committer | erdgeist <> | 2009-11-18 04:00:26 +0000 |
commit | f3c0359876b59aa8fc2f03fa61363ede9d2edc2f (patch) | |
tree | a7924f5d8ed72ac8f7c4d5f68987f2aea04f3450 /ot_http.h | |
parent | 90e7262d9d79b4098cbc52df549e138b77add193 (diff) |
Make header parsing more efficient, prepare multithreading and keep-alive.
Diffstat (limited to 'ot_http.h')
-rw-r--r-- | ot_http.h | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -7,18 +7,14 @@ | |||
7 | #define __OT_HTTP_H__ | 7 | #define __OT_HTTP_H__ |
8 | 8 | ||
9 | typedef enum { | 9 | typedef enum { |
10 | STRUCT_HTTP_FLAG_ARRAY_USED = 1, | 10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
11 | STRUCT_HTTP_FLAG_IOB_USED = 2, | 11 | STRUCT_HTTP_FLAG_GZIP = 2, |
12 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 4, | 12 | STRUCT_HTTP_FLAG_BZIP2 = 4 |
13 | STRUCT_HTTP_FLAG_GZIP = 8, | ||
14 | STRUCT_HTTP_FLAG_BZIP2 = 16 | ||
15 | } STRUCT_HTTP_FLAG; | 13 | } STRUCT_HTTP_FLAG; |
16 | 14 | ||
17 | struct http_data { | 15 | struct http_data { |
18 | union { | 16 | array request; |
19 | array request; | 17 | io_batch batch; |
20 | io_batch batch; | ||
21 | } data; | ||
22 | ot_ip6 ip; | 18 | ot_ip6 ip; |
23 | STRUCT_HTTP_FLAG flag; | 19 | STRUCT_HTTP_FLAG flag; |
24 | }; | 20 | }; |