Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.h Mon Dec 22 17:27:24 2003 +0000 +++ b/src/http/ngx_http_request.h Thu Dec 25 20:26:58 2003 +0000 @@ -64,9 +64,19 @@ #define NGX_HTTP_GATEWAY_TIME_OUT 504 +typedef enum { + NGX_HTTP_INITING_REQUEST_STATE = 0, + NGX_HTTP_READING_REQUEST_STATE, + NGX_HTTP_PROCESS_REQUEST_STATE, -#define NGX_HTTP_STATIC_HANDLER 0 -#define NGX_HTTP_DIRECTORY_HANDLER 1 + NGX_HTTP_CONNECT_UPSTREAM_STATE, + NGX_HTTP_WRITING_UPSTREAM_STATE, + NGX_HTTP_READING_UPSTREAM_STATE, + + NGX_HTTP_WRITING_REQUEST_STATE, + NGX_HTTP_LINGERING_CLOSE_STATE, + NGX_HTTP_KEEPALIVE_STATE +} ngx_http_state_e; typedef struct { @@ -223,6 +233,8 @@ void **err_ctx; int err_status; + unsigned http_state:4; + /* URI is not started with '/' - "GET http://" */ unsigned unusual_uri:1; /* URI with "/.", "%" and on Win32 with "//" */