Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_parse.h @ 8549:d70a38acaea0 quic
HTTP/3: skip unknown frames on request stream.
As per HTTP/3 draft 29, section 4.1:
Frames of unknown types (Section 9), including reserved frames
(Section 7.2.8) MAY be sent on a request or push stream before,
after, or interleaved with other frames described in this section.
Also, trailers frame is now used as an indication of the request body end.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 24 Aug 2020 09:56:36 +0300 |
parents | 72f9ff4e0a88 |
children | ab6aaa8e86b0 |
comparison
equal
deleted
inserted
replaced
8548:9ffef6054abf | 8549:d70a38acaea0 |
---|---|
74 } ngx_http_v3_parse_header_rep_t; | 74 } ngx_http_v3_parse_header_rep_t; |
75 | 75 |
76 | 76 |
77 typedef struct { | 77 typedef struct { |
78 ngx_uint_t state; | 78 ngx_uint_t state; |
79 ngx_uint_t type; | |
79 ngx_uint_t length; | 80 ngx_uint_t length; |
80 ngx_http_v3_parse_varlen_int_t vlint; | 81 ngx_http_v3_parse_varlen_int_t vlint; |
81 ngx_http_v3_parse_header_block_prefix_t prefix; | 82 ngx_http_v3_parse_header_block_prefix_t prefix; |
82 ngx_http_v3_parse_header_rep_t header_rep; | 83 ngx_http_v3_parse_header_rep_t header_rep; |
83 } ngx_http_v3_parse_headers_t; | 84 } ngx_http_v3_parse_headers_t; |
105 } ngx_http_v3_parse_control_t; | 106 } ngx_http_v3_parse_control_t; |
106 | 107 |
107 | 108 |
108 typedef struct { | 109 typedef struct { |
109 ngx_uint_t state; | 110 ngx_uint_t state; |
111 ngx_uint_t type; | |
110 ngx_uint_t length; | 112 ngx_uint_t length; |
111 ngx_http_v3_parse_varlen_int_t vlint; | 113 ngx_http_v3_parse_varlen_int_t vlint; |
112 } ngx_http_v3_parse_data_t; | 114 } ngx_http_v3_parse_data_t; |
113 | 115 |
114 | 116 |