diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-11-21 00:59:16 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-11-21 00:59:16 +0000 |
| commit | df74d881564b93c286790dbe6fc95c68967b53c5 (patch) | |
| tree | d30956f983c2e5d4b3a5b592f24efe8421e4154a /src/http/ngx_http.h | |
| parent | c29837fc4dad250d6d332eddea8edbaae7af5056 (diff) | |
| download | nginx-df74d881564b93c286790dbe6fc95c68967b53c5.tar.gz nginx-df74d881564b93c286790dbe6fc95c68967b53c5.tar.bz2 | |
Request body: chunked parsing moved to ngx_http_parse.c from proxy.
No functional changes.
Diffstat (limited to 'src/http/ngx_http.h')
| -rw-r--r-- | src/http/ngx_http.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index f152006a0..f1d02bdd2 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -18,6 +18,7 @@ typedef struct ngx_http_upstream_s ngx_http_upstream_t; typedef struct ngx_http_cache_s ngx_http_cache_t; typedef struct ngx_http_file_cache_s ngx_http_file_cache_t; typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t; +typedef struct ngx_http_chunked_s ngx_http_chunked_t; typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset); @@ -52,6 +53,13 @@ struct ngx_http_log_ctx_s { }; +struct ngx_http_chunked_s { + ngx_uint_t state; + off_t size; + off_t length; +}; + + typedef struct { ngx_uint_t http_version; ngx_uint_t code; @@ -92,6 +100,8 @@ ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len, ngx_str_t *value); void ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args); +ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b, + ngx_http_chunked_t *ctx); ngx_int_t ngx_http_find_server_conf(ngx_http_request_t *r); |
