Mercurial > hg > nginx
comparison src/http/ngx_http_output_filter.c @ 99:a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Jun 2003 15:24:30 +0000 |
parents | c9b243802a17 |
children | 6dfda4cf5200 |
comparison
equal
deleted
inserted
replaced
98:c9b243802a17 | 99:a059e1aa65d4 |
---|---|
1 | 1 |
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 | |
4 #include <ngx_core.h> | 3 #include <ngx_core.h> |
5 #include <ngx_files.h> | |
6 #include <ngx_string.h> | |
7 #include <ngx_hunk.h> | |
8 #include <ngx_conf_file.h> | |
9 | |
10 #include <ngx_http.h> | 4 #include <ngx_http.h> |
11 #include <ngx_http_config.h> | 5 |
12 #include <ngx_http_output_filter.h> | 6 |
7 typedef struct { | |
8 size_t hunk_size; | |
9 } ngx_http_output_filter_conf_t; | |
10 | |
11 | |
12 typedef struct { | |
13 ngx_hunk_t *hunk; /* the temporary hunk to copy */ | |
14 ngx_chain_t *incoming; | |
15 ngx_chain_t in; /* one chain entry for input */ | |
16 ngx_chain_t out; /* one chain entry for output */ | |
17 } ngx_http_output_filter_ctx_t; | |
13 | 18 |
14 | 19 |
15 static int ngx_http_output_filter_copy_hunk(ngx_hunk_t *dst, ngx_hunk_t *src); | 20 static int ngx_http_output_filter_copy_hunk(ngx_hunk_t *dst, ngx_hunk_t *src); |
16 static void *ngx_http_output_filter_create_conf(ngx_pool_t *pool); | 21 static void *ngx_http_output_filter_create_conf(ngx_pool_t *pool); |
17 static char *ngx_http_output_filter_merge_conf(ngx_pool_t *pool, | 22 static char *ngx_http_output_filter_merge_conf(ngx_pool_t *pool, |