Mercurial > hg > nginx
comparison src/http/ngx_http_write_filter.c @ 113:d7f606e25b99
nginx-0.0.1-2003-07-04-19:10:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jul 2003 15:10:33 +0000 |
parents | 152567c11325 |
children | cd54bcbaf3b5 |
comparison
equal
deleted
inserted
replaced
112:da763a85be66 | 113:d7f606e25b99 |
---|---|
16 | 16 |
17 | 17 |
18 static void *ngx_http_write_filter_create_conf(ngx_pool_t *pool); | 18 static void *ngx_http_write_filter_create_conf(ngx_pool_t *pool); |
19 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool, | 19 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool, |
20 void *parent, void *child); | 20 void *parent, void *child); |
21 static int ngx_http_write_filter_init(ngx_cycle_t *cycle, ngx_log_t *log); | 21 static int ngx_http_write_filter_init(ngx_cycle_t *cycle); |
22 | 22 |
23 | 23 |
24 static ngx_command_t ngx_http_write_filter_commands[] = { | 24 static ngx_command_t ngx_http_write_filter_commands[] = { |
25 | 25 |
26 {ngx_string("buffer_output"), | 26 {ngx_string("buffer_output"), |
50 NGX_MODULE, | 50 NGX_MODULE, |
51 &ngx_http_write_filter_module_ctx, /* module context */ | 51 &ngx_http_write_filter_module_ctx, /* module context */ |
52 ngx_http_write_filter_commands, /* module directives */ | 52 ngx_http_write_filter_commands, /* module directives */ |
53 NGX_HTTP_MODULE, /* module type */ | 53 NGX_HTTP_MODULE, /* module type */ |
54 ngx_http_write_filter_init, /* init module */ | 54 ngx_http_write_filter_init, /* init module */ |
55 NULL, /* commit module */ | 55 NULL /* init child */ |
56 NULL /* rollback module */ | |
57 }; | 56 }; |
58 | 57 |
59 | 58 |
60 int ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) | 59 int ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) |
61 { | 60 { |
187 | 186 |
188 return NULL; | 187 return NULL; |
189 } | 188 } |
190 | 189 |
191 | 190 |
192 static int ngx_http_write_filter_init(ngx_cycle_t *cycle, ngx_log_t *log) | 191 static int ngx_http_write_filter_init(ngx_cycle_t *cycle) |
193 { | 192 { |
194 ngx_http_top_body_filter = ngx_http_write_filter; | 193 ngx_http_top_body_filter = ngx_http_write_filter; |
195 | 194 |
196 return NGX_OK; | 195 return NGX_OK; |
197 } | 196 } |