]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: hpack: implement basic hpack encoding
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Sep 2017 12:35:57 +0000 (14:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit1be4f3d8af8a23484bd8e81bbd40b69cd1f5ded6
treec236eb7d5175e00e1fca1dc327305a4d21df46f0
parent679790baae3367afb3e07dfb3d2392ecf026cb30
MEDIUM: hpack: implement basic hpack encoding

For now it only supports literals and a bit of static header table
references for the 9 most common header field names (date, server,
content-type, content-length, last-modified, accept-ranges, etag,
cache-control, location).

A previous incarnation of this commit used to strip the forbidden H2
header names (connection, proxy-connection, upgrade, transfer-encoding,
keep-alive) but this is no longer the case as this filtering is irrelevant
to HPACK encoding and is specific to H2, so this will have to be done by
the caller.

It's quite not optimal but works fine enough to prepare some valid and
partially compressed responses during development.
Makefile
include/common/hpack-enc.h [new file with mode: 0644]
src/hpack-enc.c [new file with mode: 0644]