Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3.h @ 7999:0d2b2664b41c quic
QUIC: added "quic" listen parameter.
The parameter allows processing HTTP/0.9-2 over QUIC.
Also, introduced ngx_http_quic_module and moved QUIC settings there
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 21 Jul 2020 23:09:22 +0300 |
parents | 72f9ff4e0a88 |
children | 79125ef2e39f |
comparison
equal
deleted
inserted
replaced
7998:f537f99b86ee | 7999:0d2b2664b41c |
---|---|
116 /* unsigned settings_sent:1; */ | 116 /* unsigned settings_sent:1; */ |
117 ngx_connection_t *known_streams[NGX_HTTP_V3_MAX_KNOWN_STREAM]; | 117 ngx_connection_t *known_streams[NGX_HTTP_V3_MAX_KNOWN_STREAM]; |
118 } ngx_http_v3_connection_t; | 118 } ngx_http_v3_connection_t; |
119 | 119 |
120 | 120 |
121 ngx_int_t ngx_http_v3_init_connection(ngx_connection_t *c); | |
122 | |
121 ngx_int_t ngx_http_v3_parse_request(ngx_http_request_t *r, ngx_buf_t *b); | 123 ngx_int_t ngx_http_v3_parse_request(ngx_http_request_t *r, ngx_buf_t *b); |
122 ngx_int_t ngx_http_v3_parse_header(ngx_http_request_t *r, ngx_buf_t *b, | 124 ngx_int_t ngx_http_v3_parse_header(ngx_http_request_t *r, ngx_buf_t *b, |
123 ngx_uint_t allow_underscores); | 125 ngx_uint_t allow_underscores); |
124 ngx_int_t ngx_http_v3_parse_request_body(ngx_http_request_t *r, ngx_buf_t *b, | 126 ngx_int_t ngx_http_v3_parse_request_body(ngx_http_request_t *r, ngx_buf_t *b, |
125 ngx_http_chunked_t *ctx); | 127 ngx_http_chunked_t *ctx); |
127 ngx_chain_t *ngx_http_v3_create_trailers(ngx_http_request_t *r); | 129 ngx_chain_t *ngx_http_v3_create_trailers(ngx_http_request_t *r); |
128 | 130 |
129 uintptr_t ngx_http_v3_encode_varlen_int(u_char *p, uint64_t value); | 131 uintptr_t ngx_http_v3_encode_varlen_int(u_char *p, uint64_t value); |
130 uintptr_t ngx_http_v3_encode_prefix_int(u_char *p, uint64_t value, | 132 uintptr_t ngx_http_v3_encode_prefix_int(u_char *p, uint64_t value, |
131 ngx_uint_t prefix); | 133 ngx_uint_t prefix); |
132 | |
133 ngx_int_t ngx_http_v3_send_settings(ngx_connection_t *c); | |
134 void ngx_http_v3_handle_client_uni_stream(ngx_connection_t *c); | |
135 | 134 |
136 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, | 135 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, |
137 ngx_uint_t index, ngx_str_t *value); | 136 ngx_uint_t index, ngx_str_t *value); |
138 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, | 137 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, |
139 ngx_str_t *value); | 138 ngx_str_t *value); |