]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: add basic H2->HTX transcoding support for headers
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Nov 2018 08:29:36 +0000 (09:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 22:27:08 +0000 (23:27 +0100)
commitbd4a6b675c8d74efecd60f0952f6f10596eb771f
tree5630091cd2389059df193dad0f68ce932b361c8c
parentbcd3bb3ca224c5e28881051b3aae51e085a0110f
MEDIUM: mux-h2: add basic H2->HTX transcoding support for headers

When the proxy is configured to use HTX mode, the headers frames
will be converted to HTX header blocks instead of HTTP/1 messages.
This requires very little modifications to the existing function
so it appeared better to do it this way than to duplicate it.

Only the request headers are handled, responses are not processed
yet and data frames are not processed yet either. The return value
is inaccurate but this is not an issue since we're using it as a
boolean : data received or not.
src/mux_h2.c