]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Add 3 flags on the start-line to deal with the request schemes
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 08:08:13 +0000 (10:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 09:13:32 +0000 (11:13 +0200)
commite21c01637a0ded1244774efa5b8bcdf39d221eec
treefa767de8dfe072757471e270da459e2953fccd4d
parentd20fdb0454981ebd071d9d805895a3cd510a1f27
MINOR: htx: Add 3 flags on the start-line to deal with the request schemes

The first one, HTX_SL_F_HAS_SCHM, will be used to know the request has an
explicit scheme. So, in H2, it is always true because the pseudo-header
":scheme" is mandatory. In H1, it is only true when an absolute URI is found on
the start-line. The other flags, HTX_SL_F_SCHM_HTTP and HTX_SL_F_SCHM_HTTPS,
will be used to know which scheme the request have. For now, other protocols are
not handled.

The aim of these flags is to pass this information to the backend side in
general, and to the H2 mux in particular. So the multiplexer will have a chance
to use this information to send the right scheme to the server.
include/common/htx.h