Mercurial > hg > nginx-vendor-current
comparison src/http/ngx_http_postpone_filter_module.c @ 230:38e7b94d63ac NGINX_0_4_0
nginx 0.4.0
*) Change in internal API: the HTTP modules initialization was moved
from the init module phase to the HTTP postconfiguration phase.
*) Change: now the request body is not read beforehand for the
ngx_http_perl_module: it's required to start the reading using the
$r->has_request_body method.
*) Feature: the ngx_http_perl_module supports the DECLINED return code.
*) Feature: the ngx_http_dav_module supports the incoming "Date" header
line for the PUT method.
*) Feature: the "ssi" directive is available inside the "if" block.
*) Bugfix: a segmentation fault occurred if there was an "index"
directive with variables and the first index name was without
variables; bug appeared in 0.1.29.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 30 Aug 2006 00:00:00 +0400 |
parents | fa32d59d9a15 |
children | 12defd37f578 |
comparison
equal
deleted
inserted
replaced
229:1965c8e23be7 | 230:38e7b94d63ac |
---|---|
9 #include <ngx_http.h> | 9 #include <ngx_http.h> |
10 | 10 |
11 | 11 |
12 static ngx_int_t | 12 static ngx_int_t |
13 ngx_http_postpone_filter_output_postponed_request(ngx_http_request_t *r); | 13 ngx_http_postpone_filter_output_postponed_request(ngx_http_request_t *r); |
14 static ngx_int_t ngx_http_postpone_filter_init(ngx_cycle_t *cycle); | 14 static ngx_int_t ngx_http_postpone_filter_init(ngx_conf_t *cf); |
15 | 15 |
16 | 16 |
17 static ngx_http_module_t ngx_http_postpone_filter_module_ctx = { | 17 static ngx_http_module_t ngx_http_postpone_filter_module_ctx = { |
18 NULL, /* preconfiguration */ | 18 NULL, /* preconfiguration */ |
19 NULL, /* postconfiguration */ | 19 ngx_http_postpone_filter_init, /* postconfiguration */ |
20 | 20 |
21 NULL, /* create main configuration */ | 21 NULL, /* create main configuration */ |
22 NULL, /* init main configuration */ | 22 NULL, /* init main configuration */ |
23 | 23 |
24 NULL, /* create server configuration */ | 24 NULL, /* create server configuration */ |
33 NGX_MODULE_V1, | 33 NGX_MODULE_V1, |
34 &ngx_http_postpone_filter_module_ctx, /* module context */ | 34 &ngx_http_postpone_filter_module_ctx, /* module context */ |
35 NULL, /* module directives */ | 35 NULL, /* module directives */ |
36 NGX_HTTP_MODULE, /* module type */ | 36 NGX_HTTP_MODULE, /* module type */ |
37 NULL, /* init master */ | 37 NULL, /* init master */ |
38 ngx_http_postpone_filter_init, /* init module */ | 38 NULL, /* init module */ |
39 NULL, /* init process */ | 39 NULL, /* init process */ |
40 NULL, /* init thread */ | 40 NULL, /* init thread */ |
41 NULL, /* exit thread */ | 41 NULL, /* exit thread */ |
42 NULL, /* exit process */ | 42 NULL, /* exit process */ |
43 NULL, /* exit master */ | 43 NULL, /* exit master */ |
217 } | 217 } |
218 } | 218 } |
219 | 219 |
220 | 220 |
221 static ngx_int_t | 221 static ngx_int_t |
222 ngx_http_postpone_filter_init(ngx_cycle_t *cycle) | 222 ngx_http_postpone_filter_init(ngx_conf_t *cf) |
223 { | 223 { |
224 ngx_http_next_filter = ngx_http_top_body_filter; | 224 ngx_http_next_filter = ngx_http_top_body_filter; |
225 ngx_http_top_body_filter = ngx_http_postpone_filter; | 225 ngx_http_top_body_filter = ngx_http_postpone_filter; |
226 | 226 |
227 return NGX_OK; | 227 return NGX_OK; |