diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-01-22 16:34:06 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-01-22 16:34:06 +0300 |
commit | 9e489d208fff35c490b43980a064c38cc8dc4f2c (patch) | |
tree | 13434e205541c72867fff50bcd2c05662078d611 /src/http/v3/ngx_http_v3.h | |
parent | f3c9e9f9616066c6f1d16b9b1e01b7a3d0e2503a (diff) | |
download | nginx-9e489d208fff35c490b43980a064c38cc8dc4f2c.tar.gz nginx-9e489d208fff35c490b43980a064c38cc8dc4f2c.zip |
HTTP/3: refactored request parser.
The change reduces diff to the default branch for
src/http/ngx_http_request.c and src/http/ngx_http_parse.c.
Diffstat (limited to 'src/http/v3/ngx_http_v3.h')
-rw-r--r-- | src/http/v3/ngx_http_v3.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h index 89ed9c98a..9f91ff8f1 100644 --- a/src/http/v3/ngx_http_v3.h +++ b/src/http/v3/ngx_http_v3.h @@ -127,17 +127,11 @@ typedef struct { uint64_t next_push_id; uint64_t max_push_id; - ngx_uint_t settings_sent; - /* unsigned settings_sent:1; */ ngx_connection_t *known_streams[NGX_HTTP_V3_MAX_KNOWN_STREAM]; } ngx_http_v3_connection_t; -ngx_int_t ngx_http_v3_init_connection(ngx_connection_t *c); - -ngx_int_t ngx_http_v3_parse_request(ngx_http_request_t *r, ngx_buf_t *b); -ngx_int_t ngx_http_v3_parse_header(ngx_http_request_t *r, ngx_buf_t *b, - ngx_uint_t allow_underscores); +void ngx_http_v3_init(ngx_connection_t *c); ngx_int_t ngx_http_v3_parse_request_body(ngx_http_request_t *r, ngx_buf_t *b, ngx_http_chunked_t *ctx); @@ -157,6 +151,8 @@ uintptr_t ngx_http_v3_encode_header_pbi(u_char *p, ngx_uint_t index); uintptr_t ngx_http_v3_encode_header_lpbi(u_char *p, ngx_uint_t index, u_char *data, size_t len); +ngx_int_t ngx_http_v3_init_session(ngx_connection_t *c); +void ngx_http_v3_init_uni_stream(ngx_connection_t *c); ngx_connection_t *ngx_http_v3_create_push_stream(ngx_connection_t *c, uint64_t push_id); ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, |