Mercurial > hg > nginx
diff src/http/v3/ngx_http_v3_parse.h @ 8295:5649079a41f4 quic
Parsing HTTP/3 request body.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 27 Mar 2020 19:41:06 +0300 |
parents | 268f4389130d |
children | b0e81f49d7c0 |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_parse.h Fri Mar 27 10:02:45 2020 +0300 +++ b/src/http/v3/ngx_http_v3_parse.h Fri Mar 27 19:41:06 2020 +0300 @@ -105,6 +105,13 @@ } ngx_http_v3_parse_control_t; +typedef struct { + ngx_uint_t state; + ngx_uint_t length; + ngx_http_v3_parse_varlen_int_t vlint; +} ngx_http_v3_parse_data_t; + + ngx_int_t ngx_http_v3_parse_varlen_int(ngx_connection_t *c, ngx_http_v3_parse_varlen_int_t *st, u_char ch); ngx_int_t ngx_http_v3_parse_prefix_int(ngx_connection_t *c, @@ -141,5 +148,8 @@ ngx_int_t ngx_http_v3_parse_decoder(ngx_connection_t *c, void *data, u_char ch); +ngx_int_t ngx_http_v3_parse_data(ngx_connection_t *c, + ngx_http_v3_parse_data_t *st, u_char ch); + #endif /* _NGX_HTTP_V3_PARSE_H_INCLUDED_ */