comparison src/http/v2/ngx_http_v2.h @ 6989:2c4dbcd6f2e4

HTTP/2: reduced difference to HTTP/1.x in reading request body. Particularly, this eliminates difference in behavior for requests without body and deduplicates code. Prodded by Piotr Sikora.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 24 Apr 2017 14:17:13 +0300
parents 28dc369899ea
children 7206c3630310
comparison
equal deleted inserted replaced
6988:cc823122d50d 6989:2c4dbcd6f2e4
262 262
263 263
264 void ngx_http_v2_init(ngx_event_t *rev); 264 void ngx_http_v2_init(ngx_event_t *rev);
265 void ngx_http_v2_request_headers_init(void); 265 void ngx_http_v2_request_headers_init(void);
266 266
267 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r, 267 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r);
268 ngx_http_client_body_handler_pt post_handler);
269 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r); 268 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r);
270 269
271 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc); 270 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc);
272 271
273 ngx_int_t ngx_http_v2_send_output_queue(ngx_http_v2_connection_t *h2c); 272 ngx_int_t ngx_http_v2_send_output_queue(ngx_http_v2_connection_t *h2c);