Mercurial > hg > nginx-quic
comparison src/http/ngx_http_output_filter.h @ 9:6f58641241bb
nginx-0.0.1-2002-09-07-14:14:25 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 07 Sep 2002 10:14:25 +0000 |
parents | 708f8bb772ec |
children | 4f3879d9b6f6 |
comparison
equal
deleted
inserted
replaced
8:708f8bb772ec | 9:6f58641241bb |
---|---|
1 #ifndef _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ | 1 #ifndef _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ |
2 #define _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ | 2 #define _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #include <ngx_core.h> | 5 #include <ngx_hunk.h> |
6 #include <ngx_http.h> | |
7 | |
6 | 8 |
7 #define NGX_HTTP_FILTER_NEED_IN_MEMORY 1 | 9 #define NGX_HTTP_FILTER_NEED_IN_MEMORY 1 |
8 #define NGX_HTTP_FILTER_NEED_TEMP 2 | 10 #define NGX_HTTP_FILTER_NEED_TEMP 2 |
11 | |
12 | |
13 typedef struct { | |
14 size_t hunk_size; | |
15 } ngx_http_output_filter_conf_t; | |
9 | 16 |
10 typedef struct { | 17 typedef struct { |
11 int (*next_filter)(ngx_http_request_t *r, ngx_chain_t *ch); | 18 int (*next_filter)(ngx_http_request_t *r, ngx_chain_t *ch); |
12 ngx_hunk_t *hunk; | 19 ngx_hunk_t *hunk; |
13 ngx_chain_t *in; | 20 ngx_chain_t *in; |
14 ngx_chain_t out; | 21 ngx_chain_t out; |
15 size_t hunk_size; | |
16 unsigned last; | 22 unsigned last; |
17 } ngx_http_output_filter_ctx_t; | 23 } ngx_http_output_filter_ctx_t; |
18 | 24 |
19 | 25 |
26 int ngx_http_output_filter(ngx_http_request_t *r, ngx_hunk_t *hunk); | |
27 | |
28 | |
20 #endif /* _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ */ | 29 #endif /* _NGX_HTTP_OUTPUT_FILTER_H_INCLUDED_ */ |