]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Add macros to check if a stream uses the HTX representation
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Oct 2018 12:25:40 +0000 (14:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:45:50 +0000 (21:45 +0100)
commit1d5b85aba21c1a1170edfb81b60303c73e7f369b
treeb894e054ef9f30fb3dbe30c78ce29733d838ac83
parenteffc3750cc082ae0f1aefea1ade244d34a466b30
MINOR: http: Add macros to check if a stream uses the HTX representation

To prepare the refactoring of the code handling HTTP messages, these macros will
help to use HTX functions instead of legacy ones when the new HTX internal
representation is in use. To do so, for a given stream, we will check if its
frontend has the option PR_O2_USE_HTX. It is useless to test backend options
because it is not possible to mix the HTX representation and the legacy one
(i.e, having an HTX frontend and a legacy backend or vice versa).
include/proto/proto_http.h