diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-10 15:10:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-10 15:10:50 +0000 |
commit | b3e73d869ecef9248468e0ccc2d7d0abdbee495c (patch) | |
tree | 78f032c1884aca4879ef86ce15f10f923111f66e /src/http/ngx_http_core_module.h | |
parent | 1342d9cc29de7b6509a44a49cd66d1038d1e6d26 (diff) | |
download | nginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.tar.gz nginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.zip |
nginx-0.0.1-2003-10-10-19:10:50 import
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 08c1f024e..9cc979145 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -18,9 +18,20 @@ typedef struct { typedef struct { - ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ - ngx_array_t translate_handlers; - ngx_array_t index_handlers; + ngx_array_t handlers; + int type; /* NGX_OK, NGX_DECLINED */ + ngx_http_handler_pt post_handler; +} ngx_http_phase_t; + +#define NGX_HTTP_REWRITE_PHASE 0 +#define NGX_HTTP_TRANSLATE_PHASE 1 +#define NGX_HTTP_LAST_PHASE 2 + +typedef struct { + ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ + + ngx_http_phase_t phases[NGX_HTTP_LAST_PHASE]; + ngx_array_t index_handlers; } ngx_http_core_main_conf_t; @@ -138,6 +149,7 @@ extern int ngx_http_max_module; +int ngx_http_find_location_config(ngx_http_request_t *r); int ngx_http_core_translate_handler(ngx_http_request_t *r); int ngx_http_internal_redirect(ngx_http_request_t *r, |