]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2: add h2_make_htx_trailers to turn H2 headers to HTX trailers
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 17:39:54 +0000 (18:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 17:45:38 +0000 (18:45 +0100)
commit1e1f27c5c16e9b54b19f14a1558b5ce4cb9f09f2
tree8fef6cb7e66f7e9bb12a0722e47e6c4dae4d33ab
parent52610e905dd0c4e63373d817dc234f110d670a57
MINOR: h2: add h2_make_htx_trailers to turn H2 headers to HTX trailers

This function is usable to transform a list of H2 header fields to a
HTX trailers block. It takes care of rejecting forbidden headers and
pseudo-headers when performing the conversion. It also emits the
trailing CRLF that is currently needed in the HTX trailers block.
include/common/h2.h
src/h2.c