comparison src/http/ngx_http_request.h @ 6496:887cca40ba6a

HTTP/2: rewritten handling of request body. There are two improvements: 1. Support for request body filters; 2. Receiving of request body is started only after the ngx_http_read_client_request_body() call. The last one fixes the problem when the client_max_body_size value might not be respected from the right location if the location was changed either during the process of receiving body or after the whole body had been received.
author Valentin Bartenev <vbart@nginx.com>
date Fri, 01 Apr 2016 15:56:03 +0300
parents 29f35e60840b
children 055cbb52ac1d f88a145b093e
comparison
equal deleted inserted replaced
6495:92464ebace8e 6496:887cca40ba6a
282 typedef struct { 282 typedef struct {
283 ngx_temp_file_t *temp_file; 283 ngx_temp_file_t *temp_file;
284 ngx_chain_t *bufs; 284 ngx_chain_t *bufs;
285 ngx_buf_t *buf; 285 ngx_buf_t *buf;
286 off_t rest; 286 off_t rest;
287 #if (NGX_HTTP_V2)
288 off_t received;
289 #endif
287 ngx_chain_t *free; 290 ngx_chain_t *free;
288 ngx_chain_t *busy; 291 ngx_chain_t *busy;
289 ngx_http_chunked_t *chunked; 292 ngx_http_chunked_t *chunked;
290 ngx_http_client_body_handler_pt post_handler; 293 ngx_http_client_body_handler_pt post_handler;
291 } ngx_http_request_body_t; 294 } ngx_http_request_body_t;