comparison src/http/v2/ngx_http_v2_module.h @ 7201:641306096f5b

HTTP/2: server push. Resources to be pushed are configured with the "http2_push" directive. Also, preload links from the Link response headers, as described in https://www.w3.org/TR/preload/#server-push-http-2, can be pushed, if enabled with the "http2_push_preload" directive. Only relative URIs with absolute paths can be pushed. The number of concurrent pushes is normally limited by a client, but cannot exceed a hard limit set by the "http2_max_concurrent_pushes" directive.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 08 Feb 2018 09:55:03 +0300
parents 9027991e2f37
children 02be1baed382
comparison
equal deleted inserted replaced
7200:cadb43014c7c 7201:641306096f5b
21 21
22 22
23 typedef struct { 23 typedef struct {
24 size_t pool_size; 24 size_t pool_size;
25 ngx_uint_t concurrent_streams; 25 ngx_uint_t concurrent_streams;
26 ngx_uint_t concurrent_pushes;
26 ngx_uint_t max_requests; 27 ngx_uint_t max_requests;
27 size_t max_field_size; 28 size_t max_field_size;
28 size_t max_header_size; 29 size_t max_header_size;
29 size_t preread_size; 30 size_t preread_size;
30 ngx_uint_t streams_index_mask; 31 ngx_uint_t streams_index_mask;
33 } ngx_http_v2_srv_conf_t; 34 } ngx_http_v2_srv_conf_t;
34 35
35 36
36 typedef struct { 37 typedef struct {
37 size_t chunk_size; 38 size_t chunk_size;
39
40 ngx_flag_t push_preload;
41
42 ngx_flag_t push;
43 ngx_array_t *pushes;
38 } ngx_http_v2_loc_conf_t; 44 } ngx_http_v2_loc_conf_t;
39 45
40 46
41 extern ngx_module_t ngx_http_v2_module; 47 extern ngx_module_t ngx_http_v2_module;
42 48