From 2743bb68ee2e012a45d5084ccfea43b8bcb82eda Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 23 Mar 2015 21:09:19 +0300 Subject: Request body: unbuffered reading. The r->request_body_no_buffering flag was introduced. It instructs client request body reading code to avoid reading the whole body, and to call post_handler early instead. The caller should use the ngx_http_read_unbuffered_request_body() function to read remaining parts of the body. Upstream module is now able to use this mode, if configured with the proxy_request_buffering directive. --- src/http/ngx_http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http/ngx_http.h') diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index c7ecec732..b1e5fae6a 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -138,6 +138,7 @@ ngx_int_t ngx_http_send_special(ngx_http_request_t *r, ngx_uint_t flags); ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r, ngx_http_client_body_handler_pt post_handler); +ngx_int_t ngx_http_read_unbuffered_request_body(ngx_http_request_t *r); ngx_int_t ngx_http_send_header(ngx_http_request_t *r); ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r, -- cgit