]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acl: define explicit HTTP_3.0
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Nov 2023 15:21:01 +0000 (16:21 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Nov 2023 17:01:07 +0000 (18:01 +0100)
Some ACL shortcuts are defined to match HTTP requests by their version.
This exists for HTTP_1.0 to HTTP_2.0. This patch adds HTTP_3.0
definition.

doc/configuration.txt
src/acl.c

index 47abfe54242d77340da6eec3e2344fa3e1b8c61a..898fe97c88984ca108bef7d26d88c3b2f811f511 100644 (file)
@@ -23036,6 +23036,7 @@ HTTP             req.proto_http                     match if request protocol is
 HTTP_1.0         req.ver 1.0                        match if HTTP request version is 1.0
 HTTP_1.1         req.ver 1.1                        match if HTTP request version is 1.1
 HTTP_2.0         req.ver 2.0                        match if HTTP request version is 2.0
+HTTP_3.0         req.ver 3.0                        match if HTTP request version is 3.0
 HTTP_CONTENT     req.hdr_val(content-length) gt 0   match an existing content-length in the HTTP request
 HTTP_URL_ABS     url_reg ^[^/:]*://                 match absolute URL with scheme
 HTTP_URL_SLASH   url_beg /                          match URL beginning with "/"
index f75e6ac89673ebba1011e9265b4f3541357f0a11..043d563e1dad68b4b9f9bb20d7b2d17d967b2e28 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -710,6 +710,7 @@ const struct {
        { .name = "HTTP_1.0",       .expr = {"req.ver","1.0",""}},
        { .name = "HTTP_1.1",       .expr = {"req.ver","1.1",""}},
        { .name = "HTTP_2.0",       .expr = {"req.ver","2.0",""}},
+       { .name = "HTTP_3.0",       .expr = {"req.ver","3.0",""}},
        { .name = "METH_CONNECT",   .expr = {"method","CONNECT",""}},
        { .name = "METH_DELETE",    .expr = {"method","DELETE",""}},
        { .name = "METH_GET",       .expr = {"method","GET","HEAD",""}},