Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.h @ 143:5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Oct 2003 15:10:50 +0000 |
parents | ac69ab96328d |
children | c71aeb75c071 |
comparison
equal
deleted
inserted
replaced
142:cb77c084acdb | 143:5526213be452 |
---|---|
16 int line; | 16 int line; |
17 } ngx_http_listen_t; | 17 } ngx_http_listen_t; |
18 | 18 |
19 | 19 |
20 typedef struct { | 20 typedef struct { |
21 ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ | 21 ngx_array_t handlers; |
22 ngx_array_t translate_handlers; | 22 int type; /* NGX_OK, NGX_DECLINED */ |
23 ngx_array_t index_handlers; | 23 ngx_http_handler_pt post_handler; |
24 } ngx_http_phase_t; | |
25 | |
26 #define NGX_HTTP_REWRITE_PHASE 0 | |
27 #define NGX_HTTP_TRANSLATE_PHASE 1 | |
28 #define NGX_HTTP_LAST_PHASE 2 | |
29 | |
30 typedef struct { | |
31 ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ | |
32 | |
33 ngx_http_phase_t phases[NGX_HTTP_LAST_PHASE]; | |
34 ngx_array_t index_handlers; | |
24 } ngx_http_core_main_conf_t; | 35 } ngx_http_core_main_conf_t; |
25 | 36 |
26 | 37 |
27 typedef struct { | 38 typedef struct { |
28 ngx_array_t locations; /* array of ngx_http_core_loc_conf_t, | 39 ngx_array_t locations; /* array of ngx_http_core_loc_conf_t, |
136 | 147 |
137 extern int ngx_http_max_module; | 148 extern int ngx_http_max_module; |
138 | 149 |
139 | 150 |
140 | 151 |
152 int ngx_http_find_location_config(ngx_http_request_t *r); | |
141 int ngx_http_core_translate_handler(ngx_http_request_t *r); | 153 int ngx_http_core_translate_handler(ngx_http_request_t *r); |
142 | 154 |
143 int ngx_http_internal_redirect(ngx_http_request_t *r, | 155 int ngx_http_internal_redirect(ngx_http_request_t *r, |
144 ngx_str_t *uri, ngx_str_t *args); | 156 ngx_str_t *uri, ngx_str_t *args); |
145 int ngx_http_error(ngx_http_request_t *r, int error); | 157 int ngx_http_error(ngx_http_request_t *r, int error); |