summaryrefslogtreecommitdiffhomepage
path: root/src/http/v3
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-23 19:26:24 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-23 19:26:24 +0300
commitede2656c6016d240b804bbcb28b6ecd391cca5de (patch)
tree783048d995eafb3c419bbfae690507b6641a73cb /src/http/v3
parent77a4c2d17221d355e1e520cdff8fd41aec0bf3ed (diff)
downloadnginx-ede2656c6016d240b804bbcb28b6ecd391cca5de.tar.gz
nginx-ede2656c6016d240b804bbcb28b6ecd391cca5de.tar.bz2
Support for HTTP/3 ALPN.
This is required by Chrome.
Diffstat (limited to 'src/http/v3')
-rw-r--r--src/http/v3/ngx_http_v3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
index 2c63f544e..81e57dc36 100644
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -17,6 +17,9 @@
#define NGX_HTTP_V3_STREAM 0x48335354 /* "H3ST" */
+#define NGX_HTTP_V3_ALPN(s) NGX_HTTP_V3_ALPN_DRAFT(s)
+#define NGX_HTTP_V3_ALPN_DRAFT(s) "\x05h3-" #s
+#define NGX_HTTP_V3_ALPN_ADVERTISE NGX_HTTP_V3_ALPN(NGX_QUIC_DRAFT_VERSION)
#define NGX_HTTP_V3_VARLEN_INT_LEN 4
#define NGX_HTTP_V3_PREFIX_INT_LEN 11