Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3.h @ 8922:be08b858086a quic
HTTP/3: http3_hq directive and NGX_HTTP_V3_HQ macro.
Listen quic parameter is no longer supported.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Sat, 04 Dec 2021 10:52:55 +0300 |
parents | 33226ac61076 |
children | d6ef13c5fd8e |
comparison
equal
deleted
inserted
replaced
8921:33226ac61076 | 8922:be08b858086a |
---|---|
20 | 20 |
21 | 21 |
22 #define NGX_HTTP_V3_ALPN_PROTO "\x02h3" | 22 #define NGX_HTTP_V3_ALPN_PROTO "\x02h3" |
23 #define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD" | 23 #define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD" |
24 | 24 |
25 #define NGX_HTTP_QUIC_ALPN_PROTO "\x0Ahq-interop" | 25 #define NGX_HTTP_V3_HQ_ALPN_PROTO "\x0Ahq-interop" |
26 #define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD" | 26 #define NGX_HTTP_V3_HQ_ALPN_DRAFT_FMT "\x05hq-%02uD" |
27 | 27 |
28 #define NGX_HTTP_V3_VARLEN_INT_LEN 4 | 28 #define NGX_HTTP_V3_VARLEN_INT_LEN 4 |
29 #define NGX_HTTP_V3_PREFIX_INT_LEN 11 | 29 #define NGX_HTTP_V3_PREFIX_INT_LEN 11 |
30 | 30 |
31 #define NGX_HTTP_V3_STREAM_CONTROL 0x00 | 31 #define NGX_HTTP_V3_STREAM_CONTROL 0x00 |
100 typedef struct { | 100 typedef struct { |
101 size_t max_table_capacity; | 101 size_t max_table_capacity; |
102 ngx_uint_t max_blocked_streams; | 102 ngx_uint_t max_blocked_streams; |
103 ngx_uint_t max_concurrent_pushes; | 103 ngx_uint_t max_concurrent_pushes; |
104 ngx_uint_t max_uni_streams; | 104 ngx_uint_t max_uni_streams; |
105 #if (NGX_HTTP_V3_HQ) | |
106 ngx_flag_t hq; | |
107 #endif | |
105 ngx_quic_conf_t quic; | 108 ngx_quic_conf_t quic; |
106 } ngx_http_v3_srv_conf_t; | 109 } ngx_http_v3_srv_conf_t; |
107 | 110 |
108 | 111 |
109 typedef struct { | 112 typedef struct { |