diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-01-10 06:09:20 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-01-10 06:09:20 +0000 |
| commit | b2620634c5c395f227a98837f46e1eaf6b86963c (patch) | |
| tree | d9333eef73b09e7351cdc8705df984786a5544b3 /src/http/ngx_http.h | |
| parent | 4e9393a0548d783cd6f50d1fcd003c85a24b2b16 (diff) | |
| download | nginx-b2620634c5c395f227a98837f46e1eaf6b86963c.tar.gz nginx-b2620634c5c395f227a98837f46e1eaf6b86963c.tar.bz2 | |
nginx-0.0.1-2003-01-10-09:09:20 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 9e8e3d162..44b9497e7 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -37,6 +37,7 @@ #define NGX_HTTP_MOVED_TEMPORARILY 302 #define NGX_HTTP_NOT_MODIFIED 304 #define NGX_HTTP_BAD_REQUEST 400 +#define NGX_HTTP_FORBIDDEN 403 #define NGX_HTTP_NOT_FOUND 404 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414 #define NGX_HTTP_INTERNAL_SERVER_ERROR 500 @@ -106,13 +107,6 @@ typedef struct ngx_http_request_s ngx_http_request_t; struct ngx_http_request_s { ngx_file_t file; -#if 0 - ngx_str_t filename; - ngx_file_info_t fileinfo; - ngx_fd_t fd; - int filename_len; -#endif - void **ctx; void **srv_conf; void **loc_conf; @@ -145,6 +139,8 @@ struct ngx_http_request_s { ssize_t client_content_length; char *discarded_buffer; + ngx_str_t path; + unsigned keepalive:1; unsigned lingering_close:1; @@ -156,6 +152,7 @@ struct ngx_http_request_s { unsigned header_only:1; unsigned unusual_uri:1; /* URI is not started with '/' - "GET http://" */ unsigned complex_uri:1; /* URI with "/." or with "//" (WIN32) */ + unsigned path_not_found:1; int state; char *uri_start; @@ -180,6 +177,8 @@ typedef struct { } ngx_http_log_ctx_t; +typedef int (*ngx_http_handler_pt)(ngx_http_request_t *r); + typedef int (*ngx_http_output_header_filter_p)(ngx_http_request_t *r); typedef int (*ngx_http_output_body_filter_p) @@ -251,6 +250,9 @@ extern int ngx_http_lingering_timeout; extern int ngx_http_lingering_time; +extern ngx_array_t ngx_http_index_handlers; + + extern ngx_http_module_t *ngx_http_modules[]; |
