]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Add 2 flags on the start-line to have more info about the uri
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Oct 2019 12:27:52 +0000 (14:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Oct 2019 09:05:31 +0000 (11:05 +0200)
commit9a67c293b9477b6bdac0e62278a70d444dc7f074
tree488b735e85005e17f18819d6e05da102c9ac6f30
parent2be362c93783a60116f4bec15a035182f32e8bb5
MINOR: htx: Add 2 flags on the start-line to have more info about the uri

The first flag, HTX_SL_F_HAS_AUTHORITY, is set when the uri contains an
authority. For the H1, it happens when a CONNECT request is received or when an
absolute uri is used. For the H2, it happens when the pseudo header ":authority"
is provided.

The second one, HTX_SL_F_NORMALIZED_URI, is set when the received uri is
represented as an absolute uri because of the protocol requirements. For now, it
is only used for h2 requests, when the pseudo headers :authority and :scheme are
found. Internally, the uri is represented as an absolute uri. This flag allows
us to make the difference between an absolute uri in h1 and h2.
include/common/htx.h