Patch subject is complete summary.

 src/http/v3/ngx_http_v3.h               |  20 ++++++++++++++++++++
 src/http/v3/ngx_http_v3_filter_module.c |  20 +-------------------
 2 files changed, 21 insertions(+), 19 deletions(-)


# HG changeset patch
# User Vladimir Khomutov <v...@wbsrv.ru>
# Date 1703082710 -10800
#      Wed Dec 20 17:31:50 2023 +0300
# Node ID e1c4b57622ea1d8b65db495e88f3cd7c0c5f95ea
# Parent  f275f3a9992ca09a34a5281269d05e23136c6f0b
HTTP/3: make http/3 request defines available.

diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -1,5 +1,6 @@
 
 /*
+ * Copyright (C) 2023 Web Server LLC
  * Copyright (C) Roman Arutyunyan
  * Copyright (C) Nginx, Inc.
  */
@@ -72,6 +73,25 @@
 #define NGX_HTTP_V3_ERR_CONNECT_ERROR              0x10f
 #define NGX_HTTP_V3_ERR_VERSION_FALLBACK           0x110
 
+/* static table indices */
+#define NGX_HTTP_V3_HEADER_AUTHORITY               0
+#define NGX_HTTP_V3_HEADER_PATH_ROOT               1
+#define NGX_HTTP_V3_HEADER_CONTENT_LENGTH_ZERO     4
+#define NGX_HTTP_V3_HEADER_DATE                    6
+#define NGX_HTTP_V3_HEADER_LAST_MODIFIED           10
+#define NGX_HTTP_V3_HEADER_LOCATION                12
+#define NGX_HTTP_V3_HEADER_METHOD_GET              17
+#define NGX_HTTP_V3_HEADER_SCHEME_HTTP             22
+#define NGX_HTTP_V3_HEADER_SCHEME_HTTPS            23
+#define NGX_HTTP_V3_HEADER_STATUS_200              25
+#define NGX_HTTP_V3_HEADER_ACCEPT_ENCODING         31
+#define NGX_HTTP_V3_HEADER_CONTENT_TYPE_TEXT_PLAIN 53
+#define NGX_HTTP_V3_HEADER_VARY_ACCEPT_ENCODING    59
+#define NGX_HTTP_V3_HEADER_ACCEPT_LANGUAGE         72
+#define NGX_HTTP_V3_HEADER_SERVER                  92
+#define NGX_HTTP_V3_HEADER_USER_AGENT              95
+
+
 /* QPACK errors */
 #define NGX_HTTP_V3_ERR_DECOMPRESSION_FAILED       0x200
 #define NGX_HTTP_V3_ERR_ENCODER_STREAM_ERROR       0x201
diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c
--- a/src/http/v3/ngx_http_v3_filter_module.c
+++ b/src/http/v3/ngx_http_v3_filter_module.c
@@ -1,5 +1,6 @@
 
 /*
+ * Copyright (C) 2023 Web Server LLC
  * Copyright (C) Roman Arutyunyan
  * Copyright (C) Nginx, Inc.
  */
@@ -10,25 +11,6 @@
 #include <ngx_http.h>
 
 
-/* static table indices */
-#define NGX_HTTP_V3_HEADER_AUTHORITY                 0
-#define NGX_HTTP_V3_HEADER_PATH_ROOT                 1
-#define NGX_HTTP_V3_HEADER_CONTENT_LENGTH_ZERO       4
-#define NGX_HTTP_V3_HEADER_DATE                      6
-#define NGX_HTTP_V3_HEADER_LAST_MODIFIED             10
-#define NGX_HTTP_V3_HEADER_LOCATION                  12
-#define NGX_HTTP_V3_HEADER_METHOD_GET                17
-#define NGX_HTTP_V3_HEADER_SCHEME_HTTP               22
-#define NGX_HTTP_V3_HEADER_SCHEME_HTTPS              23
-#define NGX_HTTP_V3_HEADER_STATUS_200                25
-#define NGX_HTTP_V3_HEADER_ACCEPT_ENCODING           31
-#define NGX_HTTP_V3_HEADER_CONTENT_TYPE_TEXT_PLAIN   53
-#define NGX_HTTP_V3_HEADER_VARY_ACCEPT_ENCODING      59
-#define NGX_HTTP_V3_HEADER_ACCEPT_LANGUAGE           72
-#define NGX_HTTP_V3_HEADER_SERVER                    92
-#define NGX_HTTP_V3_HEADER_USER_AGENT                95
-
-
 typedef struct {
     ngx_chain_t         *free;
     ngx_chain_t         *busy;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to