MINOR: acl: Add HTTP_2.0 predefined macro
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Mar 2021 15:00:54 +0000 (16:00 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Apr 2021 05:31:51 +0000 (07:31 +0200)
commit8043e831d19eeef4f45bc589a5fd000a539b1e26
tree704dc698e6a45ad755944cfd0ff6fb9ebaaf1b61
parent779184e35e4468d86419fb1935ca3491f1081d0b
MINOR: acl: Add HTTP_2.0 predefined macro

HTTP_2.0 predefined macro returns true for HTTP/2 requests. HTTP/2 doen't
convey a version information, so this macro may seem a bit strange. But for
compatiblity reasons, internally, the "HTTP/2.0" version is set. Thus, it is
handy to rely on it to differenciate HTTP/1 and HTTP/2 requests.
doc/configuration.txt
src/acl.c