Mercurial > hg > nginx-quic
comparison src/http/ngx_http_write_filter.c @ 110:152567c11325
nginx-0.0.1-2003-07-02-22:51:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 02 Jul 2003 18:51:41 +0000 |
parents | 6dfda4cf5200 |
children | d7f606e25b99 |
comparison
equal
deleted
inserted
replaced
109:a9bc21d63fe4 | 110:152567c11325 |
---|---|
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_pool_t *pool); | 21 static int ngx_http_write_filter_init(ngx_cycle_t *cycle, ngx_log_t *log); |
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"), |
49 ngx_module_t ngx_http_write_filter_module = { | 49 ngx_module_t ngx_http_write_filter_module = { |
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 */ | |
56 NULL /* rollback module */ | |
55 }; | 57 }; |
56 | 58 |
57 | 59 |
58 int ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) | 60 int ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) |
59 { | 61 { |
185 | 187 |
186 return NULL; | 188 return NULL; |
187 } | 189 } |
188 | 190 |
189 | 191 |
190 static int ngx_http_write_filter_init(ngx_pool_t *pool) | 192 static int ngx_http_write_filter_init(ngx_cycle_t *cycle, ngx_log_t *log) |
191 { | 193 { |
192 ngx_http_top_body_filter = ngx_http_write_filter; | 194 ngx_http_top_body_filter = ngx_http_write_filter; |
193 | 195 |
194 return NGX_OK; | 196 return NGX_OK; |
195 } | 197 } |