Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3.h @ 8282:6bd8ed493b85 quic
HTTP/3: refactored request body parser.
The change reduces diff to the default branch for
src/http/ngx_http_request_body.c.
Also, client Content-Length, if present, is now checked against the real body
size sent by client.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 25 Jan 2021 16:16:47 +0300 |
parents | cb8185bd0507 |
children | ae2e68f206f9 |
comparison
equal
deleted
inserted
replaced
8281:a346905c359f | 8282:6bd8ed493b85 |
---|---|
131 ngx_connection_t *known_streams[NGX_HTTP_V3_MAX_KNOWN_STREAM]; | 131 ngx_connection_t *known_streams[NGX_HTTP_V3_MAX_KNOWN_STREAM]; |
132 } ngx_http_v3_connection_t; | 132 } ngx_http_v3_connection_t; |
133 | 133 |
134 | 134 |
135 void ngx_http_v3_init(ngx_connection_t *c); | 135 void ngx_http_v3_init(ngx_connection_t *c); |
136 ngx_int_t ngx_http_v3_parse_request_body(ngx_http_request_t *r, ngx_buf_t *b, | 136 ngx_int_t ngx_http_v3_read_request_body(ngx_http_request_t *r); |
137 ngx_http_chunked_t *ctx); | 137 ngx_int_t ngx_http_v3_read_unbuffered_request_body(ngx_http_request_t *r); |
138 | 138 |
139 uintptr_t ngx_http_v3_encode_varlen_int(u_char *p, uint64_t value); | 139 uintptr_t ngx_http_v3_encode_varlen_int(u_char *p, uint64_t value); |
140 uintptr_t ngx_http_v3_encode_prefix_int(u_char *p, uint64_t value, | 140 uintptr_t ngx_http_v3_encode_prefix_int(u_char *p, uint64_t value, |
141 ngx_uint_t prefix); | 141 ngx_uint_t prefix); |
142 | 142 |