]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: add bc_http_major
authorJérôme Magnin <jmagnin@haproxy.com>
Fri, 7 Dec 2018 08:03:11 +0000 (09:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Dec 2018 14:34:39 +0000 (15:34 +0100)
commit8657742092df3c5dbaab8b88ab8907644890fb07
tree947d1305b3ee58e56329d4973d9031fc8f2b5b1b
parent4468f1cacbe833a04701fcd846be959bc07803f5
MINOR: sample: add bc_http_major

This adds the sample fetch bc_http_major. It returns the backend connection's HTTP
version encoding, which may be 1 for HTTP/0.9 to HTTP/1.1 or 2 for HTTP/2.0. It is
based on the on-wire encoding, and not the version present in the request header.
doc/configuration.txt
src/connection.c