Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 44:0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Jan 2003 05:36:00 +0000 |
parents | 53cd05892261 |
children | f1ee46c036a4 |
comparison
equal
deleted
inserted
replaced
43:53cd05892261 | 44:0e81ac0bb3e2 |
---|---|
112 ngx_fd_t fd; | 112 ngx_fd_t fd; |
113 int filename_len; | 113 int filename_len; |
114 #endif | 114 #endif |
115 | 115 |
116 void **ctx; | 116 void **ctx; |
117 void **srv_conf; | |
117 void **loc_conf; | 118 void **loc_conf; |
118 void **srv_conf; | |
119 | 119 |
120 ngx_pool_t *pool; | 120 ngx_pool_t *pool; |
121 ngx_hunk_t *header_in; | 121 ngx_hunk_t *header_in; |
122 | 122 |
123 ngx_http_headers_in_t headers_in; | 123 ngx_http_headers_in_t headers_in; |
137 ngx_str_t uri; | 137 ngx_str_t uri; |
138 ngx_str_t exten; | 138 ngx_str_t exten; |
139 ngx_http_request_t *main; | 139 ngx_http_request_t *main; |
140 | 140 |
141 ngx_connection_t *connection; | 141 ngx_connection_t *connection; |
142 ngx_http_server_t *server; | |
143 | 142 |
144 int filter; | 143 int filter; |
145 | 144 |
146 ssize_t client_content_length; | 145 ssize_t client_content_length; |
147 char *discarded_buffer; | 146 char *discarded_buffer; |
190 | 189 |
191 typedef struct { | 190 typedef struct { |
192 int index; | 191 int index; |
193 | 192 |
194 void *(*create_srv_conf)(ngx_pool_t *p); | 193 void *(*create_srv_conf)(ngx_pool_t *p); |
195 void *(*init_srv_conf)(ngx_pool_t *p, void *conf); | 194 char *(*init_srv_conf)(ngx_pool_t *p, void *conf); |
196 void *(*create_loc_conf)(ngx_pool_t *p); | 195 void *(*create_loc_conf)(ngx_pool_t *p); |
197 void *(*merge_loc_conf)(ngx_pool_t *p, void *prev, void *conf); | 196 char *(*merge_loc_conf)(ngx_pool_t *p, void *prev, void *conf); |
198 | 197 |
199 int (*translate_handler)(ngx_http_request_t *r); | 198 int (*translate_handler)(ngx_http_request_t *r); |
200 | 199 |
201 int (*output_header_filter) (ngx_http_request_t *r); | 200 int (*output_header_filter) (ngx_http_request_t *r); |
202 int (*next_output_header_filter) (ngx_http_request_t *r); | 201 int (*next_output_header_filter) (ngx_http_request_t *r); |
215 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index] | 214 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index] |
216 #define ngx_http_get_module_ctx(r, module) r->ctx[module.index] | 215 #define ngx_http_get_module_ctx(r, module) r->ctx[module.index] |
217 | 216 |
218 #define ngx_http_create_ctx(r, cx, module, size) \ | 217 #define ngx_http_create_ctx(r, cx, module, size) \ |
219 do { \ | 218 do { \ |
220 ngx_test_null(cx, ngx_pcalloc(r->pool, size), NGX_ERROR); \ | 219 ngx_test_null(cx, ngx_pcalloc(r->pool, size), NGX_ERROR); \ |
221 r->ctx[module.index] = cx; \ | 220 r->ctx[module.index] = cx; \ |
222 } while (0) | 221 } while (0) |
223 | 222 |
224 | 223 |
225 | 224 |
226 /* STUB */ | 225 /* STUB */ |
235 | 234 |
236 | 235 |
237 int ngx_http_discard_body(ngx_http_request_t *r); | 236 int ngx_http_discard_body(ngx_http_request_t *r); |
238 | 237 |
239 | 238 |
240 extern int ngx_max_module; | 239 extern int ngx_max_module; |
241 | 240 extern ngx_array_t ngx_http_servers; |
242 extern ngx_http_module_t *ngx_http_modules[]; | 241 |
242 | |
243 extern int ngx_http_post_accept_timeout; | |
244 extern int ngx_http_connection_pool_size; | |
245 extern int ngx_http_request_pool_size; | |
246 extern int ngx_http_client_header_timeout; | |
247 extern int ngx_http_client_header_buffer_size; | |
248 extern int ngx_http_discarded_buffer_size; | |
249 | |
250 extern int ngx_http_lingering_timeout; | |
251 extern int ngx_http_lingering_time; | |
252 | |
253 | |
254 extern ngx_http_module_t *ngx_http_modules[]; | |
243 | 255 |
244 | 256 |
245 | 257 |
246 #endif /* _NGX_HTTP_H_INCLUDED_ */ | 258 #endif /* _NGX_HTTP_H_INCLUDED_ */ |