comparison src/http/v2/ngx_http_v2.h @ 7207:3d2b0b02bd3d

HTTP/2: push additional request headers (closes #1478). The Accept-Encoding, Accept-Language, and User-Agent header fields are now copied from the original request to pushed requests.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 15 Feb 2018 17:51:32 +0300
parents 641306096f5b
children 87e9e4aabf1b
comparison
equal deleted inserted replaced
7206:33edea74bd58 7207:3d2b0b02bd3d
281 void ngx_http_v2_init(ngx_event_t *rev); 281 void ngx_http_v2_init(ngx_event_t *rev);
282 282
283 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r); 283 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r);
284 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r); 284 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r);
285 285
286 ngx_int_t ngx_http_v2_push_stream(ngx_http_v2_connection_t *h2c, 286 ngx_http_v2_stream_t *ngx_http_v2_push_stream(ngx_http_v2_stream_t *parent,
287 ngx_uint_t depend, size_t request_length, ngx_str_t *path, 287 ngx_str_t *path);
288 ngx_str_t *authority);
289 288
290 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc); 289 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc);
291 290
292 ngx_int_t ngx_http_v2_send_output_queue(ngx_http_v2_connection_t *h2c); 291 ngx_int_t ngx_http_v2_send_output_queue(ngx_http_v2_connection_t *h2c);
293 292