]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hpack: implement the decoder
authorWilly Tarreau <w@1wt.eu>
Tue, 30 May 2017 17:09:44 +0000 (19:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit679790baae3367afb3e07dfb3d2392ecf026cb30
treeb504c8fd5c7e288210ae932193113e604c74c302
parentce04094c4a5a7d3db4115dfb4cd20ab654a90aff
MINOR: hpack: implement the decoder

The decoder is now fully functional. It makes use of the dynamic header
table. Dynamic header table size updates are currently ignored, as our
initially advertised value is the highest we support. Strictly speaking,
the impact is that a client referencing a header field after such an
update wouldn't observe an error instead of the connection being dropped
if it was implemented.

Decoded header fields are copied into a target buffer in HTTP/1 format
using HTTP/1.1 as the version. The Host header field is automatically
appended if a ":authority" header field is present.

All decoded header fields can be displayed if the file is compiled with
DEBUG_HPACK.
Makefile
include/common/hpack-dec.h [new file with mode: 0644]
src/hpack-dec.c [new file with mode: 0644]