Mercurial > hg > nginx-quic
annotate src/http/ngx_http_core_module.h @ 1574:6a60502db714
use ngx_sha1.h
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Oct 2007 12:17:11 +0000 |
parents | 56f1ea5baabb |
children | aa1835ad46ba |
rev | line source |
---|---|
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
1 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
2 /* |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
441
diff
changeset
|
3 * Copyright (C) Igor Sysoev |
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
4 */ |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
5 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
6 |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 #ifndef _NGX_HTTP_CORE_H_INCLUDED_ |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 #define _NGX_HTTP_CORE_H_INCLUDED_ |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
11 #include <ngx_string.h> |
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
12 #include <ngx_array.h> |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
13 #include <ngx_http.h> |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
14 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
15 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
16 typedef struct { |
523 | 17 unsigned default_server:1; |
18 unsigned bind:1; | |
19 | |
20 int backlog; | |
563 | 21 int rcvbuf; |
22 int sndbuf; | |
523 | 23 |
24 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER) | |
25 char *accept_filter; | |
26 #endif | |
27 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT) | |
28 ngx_uint_t deferred_accept; | |
29 #endif | |
30 | |
631 | 31 u_char addr[INET_ADDRSTRLEN + 6]; |
32 | |
523 | 33 } ngx_http_listen_conf_t; |
34 | |
35 | |
36 typedef struct { | |
477 | 37 in_addr_t addr; |
38 in_port_t port; | |
39 int family; | |
523 | 40 |
1489
56f1ea5baabb
u_char* is enough to keep file name
Igor Sysoev <igor@sysoev.ru>
parents:
1457
diff
changeset
|
41 u_char *file_name; |
56f1ea5baabb
u_char* is enough to keep file name
Igor Sysoev <igor@sysoev.ru>
parents:
1457
diff
changeset
|
42 ngx_uint_t line; |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
43 |
523 | 44 ngx_http_listen_conf_t conf; |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
45 } ngx_http_listen_t; |
19
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
46 |
41
59e7c7f30d49
nginx-0.0.1-2002-12-26-19:26:23 import
Igor Sysoev <igor@sysoev.ru>
parents:
19
diff
changeset
|
47 |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
48 typedef enum { |
573 | 49 NGX_HTTP_POST_READ_PHASE = 0, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
50 |
573 | 51 NGX_HTTP_SERVER_REWRITE_PHASE, |
681 | 52 |
573 | 53 NGX_HTTP_FIND_CONFIG_PHASE, |
489 | 54 NGX_HTTP_REWRITE_PHASE, |
681 | 55 NGX_HTTP_POST_REWRITE_PHASE, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
56 |
581 | 57 NGX_HTTP_PREACCESS_PHASE, |
58 | |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
59 NGX_HTTP_ACCESS_PHASE, |
681 | 60 NGX_HTTP_POST_ACCESS_PHASE, |
61 | |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
62 NGX_HTTP_CONTENT_PHASE, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
63 |
581 | 64 NGX_HTTP_LOG_PHASE |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
65 } ngx_http_phases; |
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
66 |
681 | 67 typedef struct ngx_http_phase_handler_s ngx_http_phase_handler_t; |
68 | |
69 typedef ngx_int_t (*ngx_http_phase_handler_pt)(ngx_http_request_t *r, | |
70 ngx_http_phase_handler_t *ph); | |
71 | |
72 struct ngx_http_phase_handler_s { | |
73 ngx_http_phase_handler_pt checker; | |
74 ngx_http_handler_pt handler; | |
75 ngx_uint_t next; | |
76 }; | |
77 | |
78 | |
79 typedef struct { | |
80 ngx_http_phase_handler_t *handlers; | |
81 ngx_uint_t server_rewrite_index; | |
1353 | 82 ngx_uint_t location_rewrite_index; |
681 | 83 } ngx_http_phase_engine_t; |
84 | |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
85 |
19
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
86 typedef struct { |
477 | 87 ngx_array_t handlers; |
143
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
88 } ngx_http_phase_t; |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
89 |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
90 |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
91 typedef struct { |
485 | 92 ngx_array_t servers; /* ngx_http_core_srv_conf_t */ |
477 | 93 |
681 | 94 ngx_http_phase_engine_t phase_engine; |
143
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
95 |
649 | 96 ngx_hash_t headers_in_hash; |
611 | 97 |
98 ngx_hash_t variables_hash; | |
99 | |
100 ngx_array_t variables; /* ngx_http_variable_t */ | |
507 | 101 |
593 | 102 ngx_uint_t server_names_hash_max_size; |
103 ngx_uint_t server_names_hash_bucket_size; | |
485 | 104 |
611 | 105 ngx_uint_t variables_hash_max_size; |
106 ngx_uint_t variables_hash_bucket_size; | |
107 | |
108 ngx_hash_keys_arrays_t *variables_keys; | |
681 | 109 |
110 ngx_http_phase_t phases[NGX_HTTP_LOG_PHASE + 1]; | |
90
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
111 } ngx_http_core_main_conf_t; |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
112 |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
113 |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
114 typedef struct { |
393
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
115 /* |
581 | 116 * array of the ngx_http_core_loc_conf_t *, |
117 * used in the ngx_http_core_find_location() and in the merge phase | |
393
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
118 */ |
477 | 119 ngx_array_t locations; |
91
637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
90
diff
changeset
|
120 |
1353 | 121 unsigned regex_start:15; |
122 unsigned named_start:15; | |
1235
f8a40ccafb04
optimize regex location search
Igor Sysoev <igor@sysoev.ru>
parents:
1232
diff
changeset
|
123 unsigned wildcard:1; |
f8a40ccafb04
optimize regex location search
Igor Sysoev <igor@sysoev.ru>
parents:
1232
diff
changeset
|
124 |
485 | 125 /* array of the ngx_http_listen_t, "listen" directive */ |
477 | 126 ngx_array_t listen; |
95
b48066122884
nginx-0.0.1-2003-05-23-15:53:01 import
Igor Sysoev <igor@sysoev.ru>
parents:
93
diff
changeset
|
127 |
485 | 128 /* array of the ngx_http_server_name_t, "server_name" directive */ |
477 | 129 ngx_array_t server_names; |
393
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
130 |
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
131 /* server ctx */ |
477 | 132 ngx_http_conf_ctx_t *ctx; |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
133 |
593 | 134 ngx_str_t server_name; |
135 | |
477 | 136 size_t connection_pool_size; |
137 size_t request_pool_size; | |
138 size_t client_header_buffer_size; | |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
139 |
477 | 140 ngx_bufs_t large_client_header_buffers; |
435
5cdc4838d4e8
nginx-0.0.11-2004-09-22-20:18:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
141 |
477 | 142 ngx_msec_t client_header_timeout; |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
326
diff
changeset
|
143 |
609 | 144 ngx_flag_t optimize_server_names; |
511 | 145 ngx_flag_t ignore_invalid_headers; |
19
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
146 } ngx_http_core_srv_conf_t; |
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
147 |
41
59e7c7f30d49
nginx-0.0.1-2002-12-26-19:26:23 import
Igor Sysoev <igor@sysoev.ru>
parents:
19
diff
changeset
|
148 |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
149 /* list of structures to find core_srv_conf quickly at run time */ |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
150 |
593 | 151 |
152 typedef struct { | |
153 in_addr_t addr; | |
1387 | 154 |
593 | 155 /* the default server configuration for this address:port */ |
156 ngx_http_core_srv_conf_t *core_srv_conf; | |
1387 | 157 |
593 | 158 ngx_http_virtual_names_t *virtual_names; |
159 } ngx_http_in_addr_t; | |
160 | |
161 | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
162 typedef struct { |
477 | 163 in_port_t port; |
164 ngx_str_t port_text; | |
593 | 165 ngx_http_in_addr_t *addrs; |
166 ngx_uint_t naddrs; | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
167 } ngx_http_in_port_t; |
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
168 |
89
29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
88
diff
changeset
|
169 |
593 | 170 typedef struct { |
171 in_port_t port; | |
172 ngx_array_t addrs; /* array of ngx_http_conf_in_addr_t */ | |
173 } ngx_http_conf_in_port_t; | |
174 | |
175 | |
176 typedef struct { | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
190
diff
changeset
|
177 in_addr_t addr; |
477 | 178 |
593 | 179 ngx_hash_t hash; |
1253
8ef04207c84f
the "www.example.*" wildcard hash support
Igor Sysoev <igor@sysoev.ru>
parents:
1236
diff
changeset
|
180 ngx_hash_wildcard_t *wc_head; |
8ef04207c84f
the "www.example.*" wildcard hash support
Igor Sysoev <igor@sysoev.ru>
parents:
1236
diff
changeset
|
181 ngx_hash_wildcard_t *wc_tail; |
593 | 182 |
183 ngx_array_t names; /* array of ngx_http_server_name_t */ | |
477 | 184 |
1387 | 185 #if (NGX_PCRE) |
186 ngx_uint_t nregex; | |
187 ngx_http_server_name_t *regex; | |
188 | |
189 #endif | |
190 | |
477 | 191 /* the default server configuration for this address:port */ |
192 ngx_http_core_srv_conf_t *core_srv_conf; | |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
193 |
593 | 194 unsigned default_server:1; |
195 unsigned bind:1; | |
196 | |
197 ngx_http_listen_conf_t *listen_conf; | |
198 } ngx_http_conf_in_addr_t; | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
199 |
89
29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
88
diff
changeset
|
200 |
1387 | 201 struct ngx_http_server_name_s { |
202 #if (NGX_PCRE) | |
203 ngx_regex_t *regex; | |
204 #endif | |
205 ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */ | |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
206 ngx_str_t name; |
1387 | 207 }; |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
208 |
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
209 |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
210 typedef struct { |
673 | 211 ngx_int_t status; |
212 ngx_int_t overwrite; | |
213 ngx_str_t uri; | |
214 ngx_array_t *uri_lengths; | |
215 ngx_array_t *uri_values; | |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
216 } ngx_http_err_page_t; |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
217 |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
218 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
219 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t; |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
220 |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
221 struct ngx_http_core_loc_conf_s { |
96
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
222 ngx_str_t name; /* location name */ |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
223 |
455 | 224 #if (NGX_PCRE) |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
225 ngx_regex_t *regex; |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
226 #endif |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
227 |
1353 | 228 unsigned regex_start:15; |
1235
f8a40ccafb04
optimize regex location search
Igor Sysoev <igor@sysoev.ru>
parents:
1232
diff
changeset
|
229 |
1353 | 230 unsigned noname:1; /* "if () {}" block or limit_except */ |
231 unsigned named:1; | |
485 | 232 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
233 unsigned exact_match:1; |
467 | 234 unsigned noregex:1; |
235 | |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
236 unsigned auto_redirect:1; |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
237 unsigned alias:1; |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
238 |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
239 /* array of inclusive ngx_http_core_loc_conf_t */ |
1236
5e4d3b5d7ad0
use pointer to an array instead of array for inclusive locations inside location
Igor Sysoev <igor@sysoev.ru>
parents:
1235
diff
changeset
|
240 ngx_array_t *locations; |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
241 |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
242 /* pointer to the modules' loc_conf */ |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
243 void **loc_conf ; |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
244 |
631 | 245 uint32_t limit_except; |
246 void **limit_except_loc_conf ; | |
247 | |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
248 ngx_http_handler_pt handler; |
71
59229033ae93
nginx-0.0.1-2003-04-08-19:40:10 import
Igor Sysoev <igor@sysoev.ru>
parents:
69
diff
changeset
|
249 |
577 | 250 ngx_str_t root; /* root, alias */ |
251 ngx_str_t post_action; | |
252 | |
595 | 253 ngx_array_t *root_lengths; |
254 ngx_array_t *root_values; | |
255 | |
589 | 256 ngx_array_t *types; |
257 ngx_hash_t types_hash; | |
258 ngx_str_t default_type; | |
259 | |
663 | 260 off_t client_max_body_size; /* client_max_body_size */ |
261 | |
303
00c5660d2707
nginx-0.0.3-2004-04-01-20:20:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
293
diff
changeset
|
262 size_t client_body_buffer_size; /* client_body_buffer_size */ |
362
7650aea1816f
nginx-0.0.7-2004-06-21-19:59:32 import
Igor Sysoev <igor@sysoev.ru>
parents:
356
diff
changeset
|
263 size_t send_lowat; /* send_lowat */ |
391
b670db10cbbd
nginx-0.0.7-2004-07-14-20:01:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
369
diff
changeset
|
264 size_t postpone_output; /* postpone_output */ |
b670db10cbbd
nginx-0.0.7-2004-07-14-20:01:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
369
diff
changeset
|
265 size_t limit_rate; /* limit_rate */ |
1197 | 266 size_t sendfile_max_chunk; /* sendfile_max_chunk */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
267 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
158
diff
changeset
|
268 ngx_msec_t client_body_timeout; /* client_body_timeout */ |
96
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
269 ngx_msec_t send_timeout; /* send_timeout */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
270 ngx_msec_t keepalive_timeout; /* keepalive_timeout */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
271 ngx_msec_t lingering_time; /* lingering_time */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
272 ngx_msec_t lingering_timeout; /* lingering_timeout */ |
71
59229033ae93
nginx-0.0.1-2003-04-08-19:40:10 import
Igor Sysoev <igor@sysoev.ru>
parents:
69
diff
changeset
|
273 |
436
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
274 time_t keepalive_header; /* keepalive_timeout */ |
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
275 |
543 | 276 ngx_flag_t satisfy_any; /* satisfy_any */ |
509 | 277 ngx_flag_t internal; /* internal */ |
633 | 278 ngx_flag_t client_body_in_file_only; /* client_body_in_file_only */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
279 ngx_flag_t sendfile; /* sendfile */ |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
280 ngx_flag_t tcp_nopush; /* tcp_nopush */ |
452 | 281 ngx_flag_t tcp_nodelay; /* tcp_nodelay */ |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
282 ngx_flag_t reset_timedout_connection; /* reset_timedout_connection */ |
521 | 283 ngx_flag_t port_in_redirect; /* port_in_redirect */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
284 ngx_flag_t msie_padding; /* msie_padding */ |
679 | 285 ngx_flag_t msie_refresh; /* msie_refresh */ |
527 | 286 ngx_flag_t log_not_found; /* log_not_found */ |
679 | 287 ngx_flag_t recursive_error_pages; /* recursive_error_pages */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
288 |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
289 ngx_array_t *error_pages; /* error_page */ |
158
d377ee423603
nginx-0.0.1-2003-10-24-10:53:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
154
diff
changeset
|
290 |
479 | 291 ngx_path_t *client_body_temp_path; /* client_body_temp_path */ |
292 | |
1454 | 293 ngx_open_file_cache_t *open_file_cache; |
294 time_t open_file_cache_retest; | |
295 ngx_flag_t open_file_cache_errors; | |
1457 | 296 ngx_flag_t open_file_cache_events; |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
297 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
298 ngx_log_t *err_log; |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
190
diff
changeset
|
299 |
589 | 300 ngx_uint_t types_hash_max_size; |
301 ngx_uint_t types_hash_bucket_size; | |
302 | |
485 | 303 #if 0 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
304 ngx_http_core_loc_conf_t *prev_location; |
485 | 305 #endif |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
306 }; |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
307 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
308 |
681 | 309 void ngx_http_core_run_phases(ngx_http_request_t *r); |
310 ngx_int_t ngx_http_core_generic_phase(ngx_http_request_t *r, | |
311 ngx_http_phase_handler_t *ph); | |
312 ngx_int_t ngx_http_core_find_config_phase(ngx_http_request_t *r, | |
313 ngx_http_phase_handler_t *ph); | |
314 ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, | |
315 ngx_http_phase_handler_t *ph); | |
316 ngx_int_t ngx_http_core_access_phase(ngx_http_request_t *r, | |
317 ngx_http_phase_handler_t *ph); | |
318 ngx_int_t ngx_http_core_post_access_phase(ngx_http_request_t *r, | |
319 ngx_http_phase_handler_t *ph); | |
320 ngx_int_t ngx_http_core_content_phase(ngx_http_request_t *r, | |
321 ngx_http_phase_handler_t *ph); | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
322 |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
323 ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r); |
216
f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
324 ngx_int_t ngx_http_set_exten(ngx_http_request_t *r); |
557 | 325 u_char *ngx_http_map_uri_to_path(ngx_http_request_t *r, ngx_str_t *name, |
773 | 326 size_t *root_length, size_t reserved); |
539 | 327 ngx_int_t ngx_http_auth_basic_user(ngx_http_request_t *r); |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
328 |
509 | 329 ngx_int_t ngx_http_subrequest(ngx_http_request_t *r, |
758
86bb73dc8d40
fix <!--#include virtual=... wait="yes" -->
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
330 ngx_str_t *uri, ngx_str_t *args, ngx_http_request_t **sr, |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
331 ngx_http_post_subrequest_t *psr, ngx_uint_t flags); |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
332 ngx_int_t ngx_http_internal_redirect(ngx_http_request_t *r, |
499 | 333 ngx_str_t *uri, ngx_str_t *args); |
1353 | 334 ngx_int_t ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name); |
335 | |
485 | 336 |
569 | 337 ngx_http_cleanup_t *ngx_http_cleanup_add(ngx_http_request_t *r, size_t size); |
338 | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
339 |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
340 typedef ngx_int_t (*ngx_http_output_header_filter_pt)(ngx_http_request_t *r); |
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
341 typedef ngx_int_t (*ngx_http_output_body_filter_pt) |
499 | 342 (ngx_http_request_t *r, ngx_chain_t *chain); |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
343 |
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
344 |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
345 ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *chain); |
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
346 ngx_int_t ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *chain); |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
347 |
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
348 |
577 | 349 extern ngx_module_t ngx_http_core_module; |
350 | |
351 extern ngx_uint_t ngx_http_max_module; | |
352 | |
353 | |
354 #define ngx_http_clear_content_length(r) \ | |
355 \ | |
356 r->headers_out.content_length_n = -1; \ | |
357 if (r->headers_out.content_length) { \ | |
358 r->headers_out.content_length->hash = 0; \ | |
359 r->headers_out.content_length = NULL; \ | |
360 } | |
361 \ | |
362 #define ngx_http_clear_accept_ranges(r) \ | |
363 \ | |
581 | 364 r->allow_ranges = 0; \ |
577 | 365 if (r->headers_out.accept_ranges) { \ |
366 r->headers_out.accept_ranges->hash = 0 ; \ | |
367 r->headers_out.accept_ranges = NULL; \ | |
368 } | |
369 | |
370 #define ngx_http_clear_last_modified(r) \ | |
371 \ | |
372 r->headers_out.last_modified_time = -1; \ | |
373 if (r->headers_out.last_modified) { \ | |
374 r->headers_out.last_modified->hash = 0; \ | |
375 r->headers_out.last_modified = NULL; \ | |
376 } | |
377 | |
378 | |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
379 #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */ |