MINOR: h3: implement TRAILERS encoding
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Jan 2023 13:53:43 +0000 (14:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Jan 2023 14:09:01 +0000 (15:09 +0100)
commit4e52010e576efe02f08ebfc2c6e0dbd593d3f405
treef1edb430d0d27458bff43780254175e7486169a3
parent7d78eff88928fd5fa4a7b49cc280470673dc6e16
MINOR: h3: implement TRAILERS encoding

This patch implement the conversion of an HTX response containing
trailer into a H3 HEADERS frame. This is done through a new function
named h3_resp_trailers_send().

This was tested with a nginx configuration using <add_trailer>
statement.

It may be possible that HTX buffer only contains a EOT block without
preceeding trailer. In this case, the conversion will produce nothing
but fin will be reported. This causes QUIC mux to generate an empty
STREAM frame with FIN bit set.

This should be backported up to 2.7.
src/h3.c