comparison src/http/ngx_http.h @ 6050:a08fad30aeac

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 23 Mar 2015 21:09:19 +0300
parents 42d9beeb22db
children c61210e2e081
comparison
equal deleted inserted replaced
6049:42d9beeb22db 6050:a08fad30aeac
136 ngx_int_t ngx_http_send_special(ngx_http_request_t *r, ngx_uint_t flags); 136 ngx_int_t ngx_http_send_special(ngx_http_request_t *r, ngx_uint_t flags);
137 137
138 138
139 ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r, 139 ngx_int_t ngx_http_read_client_request_body(ngx_http_request_t *r,
140 ngx_http_client_body_handler_pt post_handler); 140 ngx_http_client_body_handler_pt post_handler);
141 ngx_int_t ngx_http_read_unbuffered_request_body(ngx_http_request_t *r);
141 142
142 ngx_int_t ngx_http_send_header(ngx_http_request_t *r); 143 ngx_int_t ngx_http_send_header(ngx_http_request_t *r);
143 ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r, 144 ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r,
144 ngx_int_t error); 145 ngx_int_t error);
145 ngx_int_t ngx_http_filter_finalize_request(ngx_http_request_t *r, 146 ngx_int_t ngx_http_filter_finalize_request(ngx_http_request_t *r,