Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 4925:32030fa8cb14
Request body: chunked parsing moved to ngx_http_parse.c from proxy.
No functional changes.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 21 Nov 2012 00:59:16 +0000 |
parents | d620f497c50f |
children | fd84344f1df7 |
comparison
equal
deleted
inserted
replaced
4924:caca5603bded | 4925:32030fa8cb14 |
---|---|
16 typedef struct ngx_http_request_s ngx_http_request_t; | 16 typedef struct ngx_http_request_s ngx_http_request_t; |
17 typedef struct ngx_http_upstream_s ngx_http_upstream_t; | 17 typedef struct ngx_http_upstream_s ngx_http_upstream_t; |
18 typedef struct ngx_http_cache_s ngx_http_cache_t; | 18 typedef struct ngx_http_cache_s ngx_http_cache_t; |
19 typedef struct ngx_http_file_cache_s ngx_http_file_cache_t; | 19 typedef struct ngx_http_file_cache_s ngx_http_file_cache_t; |
20 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t; | 20 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t; |
21 typedef struct ngx_http_chunked_s ngx_http_chunked_t; | |
21 | 22 |
22 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r, | 23 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r, |
23 ngx_table_elt_t *h, ngx_uint_t offset); | 24 ngx_table_elt_t *h, ngx_uint_t offset); |
24 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r, | 25 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r, |
25 ngx_http_request_t *sr, u_char *buf, size_t len); | 26 ngx_http_request_t *sr, u_char *buf, size_t len); |
47 | 48 |
48 struct ngx_http_log_ctx_s { | 49 struct ngx_http_log_ctx_s { |
49 ngx_connection_t *connection; | 50 ngx_connection_t *connection; |
50 ngx_http_request_t *request; | 51 ngx_http_request_t *request; |
51 ngx_http_request_t *current_request; | 52 ngx_http_request_t *current_request; |
53 }; | |
54 | |
55 | |
56 struct ngx_http_chunked_s { | |
57 ngx_uint_t state; | |
58 off_t size; | |
59 off_t length; | |
52 }; | 60 }; |
53 | 61 |
54 | 62 |
55 typedef struct { | 63 typedef struct { |
56 ngx_uint_t http_version; | 64 ngx_uint_t http_version; |
90 ngx_str_t *name, ngx_str_t *value); | 98 ngx_str_t *name, ngx_str_t *value); |
91 ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len, | 99 ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len, |
92 ngx_str_t *value); | 100 ngx_str_t *value); |
93 void ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri, | 101 void ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri, |
94 ngx_str_t *args); | 102 ngx_str_t *args); |
103 ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b, | |
104 ngx_http_chunked_t *ctx); | |
95 | 105 |
96 | 106 |
97 ngx_int_t ngx_http_find_server_conf(ngx_http_request_t *r); | 107 ngx_int_t ngx_http_find_server_conf(ngx_http_request_t *r); |
98 void ngx_http_update_location_config(ngx_http_request_t *r); | 108 void ngx_http_update_location_config(ngx_http_request_t *r); |
99 void ngx_http_handler(ngx_http_request_t *r); | 109 void ngx_http_handler(ngx_http_request_t *r); |