Mercurial > hg > nginx
comparison src/http/ngx_http_output_filter.c @ 91:637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 19 May 2003 16:39:14 +0000 |
parents | 37530da31268 |
children | 8220378432a8 |
comparison
equal
deleted
inserted
replaced
90:37530da31268 | 91:637625a2acdb |
---|---|
21 | 21 |
22 | 22 |
23 static ngx_command_t ngx_http_output_filter_commands[] = { | 23 static ngx_command_t ngx_http_output_filter_commands[] = { |
24 | 24 |
25 {ngx_string("output_buffer"), | 25 {ngx_string("output_buffer"), |
26 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 26 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
27 ngx_conf_set_size_slot, | 27 ngx_conf_set_size_slot, |
28 NGX_HTTP_LOC_CONF_OFFSET, | 28 NGX_HTTP_LOC_CONF_OFFSET, |
29 offsetof(ngx_http_output_filter_conf_t, hunk_size), | 29 offsetof(ngx_http_output_filter_conf_t, hunk_size), |
30 NULL}, | 30 NULL}, |
31 | 31 |
34 | 34 |
35 | 35 |
36 static ngx_http_module_t ngx_http_output_filter_module_ctx = { | 36 static ngx_http_module_t ngx_http_output_filter_module_ctx = { |
37 NGX_HTTP_MODULE, | 37 NGX_HTTP_MODULE, |
38 | 38 |
39 NULL, /* create server config */ | 39 NULL, /* create main configuration */ |
40 NULL, /* init server config */ | 40 NULL, /* init main configuration */ |
41 | 41 |
42 ngx_http_output_filter_create_conf, /* create location config */ | 42 NULL, /* create server configuration */ |
43 ngx_http_output_filter_merge_conf /* merge location config */ | 43 NULL, /* merge server configuration */ |
44 | |
45 ngx_http_output_filter_create_conf, /* create location configuration */ | |
46 ngx_http_output_filter_merge_conf /* merge location configuration */ | |
44 }; | 47 }; |
45 | 48 |
46 | 49 |
47 ngx_module_t ngx_http_output_filter_module = { | 50 ngx_module_t ngx_http_output_filter_module = { |
48 &ngx_http_output_filter_module_ctx, /* module context */ | 51 &ngx_http_output_filter_module_ctx, /* module context */ |
334 ngx_http_output_filter_conf_t *prev = | 337 ngx_http_output_filter_conf_t *prev = |
335 (ngx_http_output_filter_conf_t *) parent; | 338 (ngx_http_output_filter_conf_t *) parent; |
336 ngx_http_output_filter_conf_t *conf = | 339 ngx_http_output_filter_conf_t *conf = |
337 (ngx_http_output_filter_conf_t *) child; | 340 (ngx_http_output_filter_conf_t *) child; |
338 | 341 |
339 ngx_conf_size_merge(conf->hunk_size, prev->hunk_size, 32768); | 342 ngx_conf_merge_size_value(conf->hunk_size, prev->hunk_size, 32768); |
340 | 343 |
341 return NULL; | 344 return NULL; |
342 } | 345 } |