Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 216:f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Dec 2003 20:26:58 +0000 |
parents | 00cafae0bdf1 |
children | 03c54b6d7a6f |
comparison
equal
deleted
inserted
replaced
215:5adc2b75f8a5 | 216:f1d0e5f09c1e |
---|---|
62 #define NGX_HTTP_BAD_GATEWAY 502 | 62 #define NGX_HTTP_BAD_GATEWAY 502 |
63 #define NGX_HTTP_SERVICE_UNAVAILABLE 503 | 63 #define NGX_HTTP_SERVICE_UNAVAILABLE 503 |
64 #define NGX_HTTP_GATEWAY_TIME_OUT 504 | 64 #define NGX_HTTP_GATEWAY_TIME_OUT 504 |
65 | 65 |
66 | 66 |
67 | 67 typedef enum { |
68 #define NGX_HTTP_STATIC_HANDLER 0 | 68 NGX_HTTP_INITING_REQUEST_STATE = 0, |
69 #define NGX_HTTP_DIRECTORY_HANDLER 1 | 69 NGX_HTTP_READING_REQUEST_STATE, |
70 NGX_HTTP_PROCESS_REQUEST_STATE, | |
71 | |
72 NGX_HTTP_CONNECT_UPSTREAM_STATE, | |
73 NGX_HTTP_WRITING_UPSTREAM_STATE, | |
74 NGX_HTTP_READING_UPSTREAM_STATE, | |
75 | |
76 NGX_HTTP_WRITING_REQUEST_STATE, | |
77 NGX_HTTP_LINGERING_CLOSE_STATE, | |
78 NGX_HTTP_KEEPALIVE_STATE | |
79 } ngx_http_state_e; | |
70 | 80 |
71 | 81 |
72 typedef struct { | 82 typedef struct { |
73 ngx_str_t name; | 83 ngx_str_t name; |
74 int offset; | 84 int offset; |
220 size_t header_size; | 230 size_t header_size; |
221 | 231 |
222 char *discarded_buffer; | 232 char *discarded_buffer; |
223 void **err_ctx; | 233 void **err_ctx; |
224 int err_status; | 234 int err_status; |
235 | |
236 unsigned http_state:4; | |
225 | 237 |
226 /* URI is not started with '/' - "GET http://" */ | 238 /* URI is not started with '/' - "GET http://" */ |
227 unsigned unusual_uri:1; | 239 unsigned unusual_uri:1; |
228 /* URI with "/.", "%" and on Win32 with "//" */ | 240 /* URI with "/.", "%" and on Win32 with "//" */ |
229 unsigned complex_uri:1; | 241 unsigned complex_uri:1; |