MEDIUM: mux-h2: implement emission of H2 headers frames from HTX blocks
authorWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 18:17:53 +0000 (19:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 22:27:08 +0000 (23:27 +0100)
commit115e83b0718027088a99beca6d680f6e45eb2c14
treecd4ec67cc86b5eb1f8e27dde0abd36985301c0c5
parentbd4a6b675c8d74efecd60f0952f6f10596eb771f
MEDIUM: mux-h2: implement emission of H2 headers frames from HTX blocks

When using HTX, we need a separate function to emit a headers frame.
The code is significantly different from the H1 to H2 conversion, though
it borrows some parts there. It looks like the part building the H2 frame
from the headers list could be factored out, however some of the logic
around dealing with end of stream or block sizes remains different.

With this patch it becomes possible to retrieve bodyless HTTP responses
using H2 over HTX.
src/mux_h2.c