Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 160:e7e094d34162
nginx-0.0.1-2003-10-27-11:53:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Oct 2003 08:53:49 +0000 |
parents | 46eb23d9471d |
children | 96993d4d5067 |
comparison
equal
deleted
inserted
replaced
159:981e4af2a425 | 160:e7e094d34162 |
---|---|
16 | 16 |
17 #define NGX_NONE 1 | 17 #define NGX_NONE 1 |
18 | 18 |
19 | 19 |
20 #define NGX_HTTP_PARSE_HEADER_DONE 1 | 20 #define NGX_HTTP_PARSE_HEADER_DONE 1 |
21 | |
22 #define NGX_HTTP_CLIENT_ERROR 10 | |
21 #define NGX_HTTP_PARSE_INVALID_METHOD 10 | 23 #define NGX_HTTP_PARSE_INVALID_METHOD 10 |
22 #define NGX_HTTP_PARSE_INVALID_REQUEST 11 | 24 #define NGX_HTTP_PARSE_INVALID_REQUEST 11 |
23 #define NGX_HTTP_PARSE_TOO_LONG_URI 12 | 25 #define NGX_HTTP_PARSE_TOO_LONG_URI 12 |
24 #define NGX_HTTP_PARSE_INVALID_09_METHOD 13 | 26 #define NGX_HTTP_PARSE_INVALID_09_METHOD 13 |
27 | |
28 #define NGX_HTTP_PARSE_HEADER_ERROR 14 | |
25 #define NGX_HTTP_PARSE_INVALID_HEADER 14 | 29 #define NGX_HTTP_PARSE_INVALID_HEADER 14 |
26 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 | 30 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 |
27 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 | 31 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 |
28 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 | 32 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 |
29 | 33 |
174 | 178 |
175 int phase; | 179 int phase; |
176 int phase_handler; | 180 int phase_handler; |
177 ngx_http_handler_pt content_handler; | 181 ngx_http_handler_pt content_handler; |
178 | 182 |
183 ngx_temp_file_t *temp_file; | |
184 ngx_chain_t *request_hunks; | |
185 ngx_hunk_t *request_body_hunk; | |
186 int request_body_len; | |
187 void (*request_body_handler) (void *data); | |
188 void *data; | |
189 | |
179 char *discarded_buffer; | 190 char *discarded_buffer; |
180 | 191 |
181 /* URI is not started with '/' - "GET http://" */ | 192 /* URI is not started with '/' - "GET http://" */ |
182 unsigned unusual_uri:1; | 193 unsigned unusual_uri:1; |
183 /* URI with "/.", "%" and on Win32 with "//" */ | 194 /* URI with "/.", "%" and on Win32 with "//" */ |
195 | 206 |
196 unsigned chunked:1; | 207 unsigned chunked:1; |
197 unsigned header_only:1; | 208 unsigned header_only:1; |
198 unsigned keepalive:1; | 209 unsigned keepalive:1; |
199 unsigned lingering_close:1; | 210 unsigned lingering_close:1; |
211 #if 0 | |
200 unsigned closed:1; | 212 unsigned closed:1; |
213 #endif | |
201 | 214 |
202 /* TODO: use filter or bits ???? */ | 215 /* TODO: use filter or bits ???? */ |
203 int filter; | 216 int filter; |
204 | 217 |
205 /* used to parse HTTP headers */ | 218 /* used to parse HTTP headers */ |