]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hpack: provide new functions to encode the ":status" header
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 17:04:42 +0000 (18:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 08:07:02 +0000 (09:07 +0100)
commit8895367fb1fd7f857a137eb8ef86f2f429879242
tree1b430070ad0ac071f45a7f8d6289731c0df5764c
parentbd5659bbe105edb7883853be7209cab663040a01
MINOR: hpack: provide new functions to encode the ":status" header

This header exists with 7 different values, it's worth taking them
into account for the encoding, hence these functions. One of them
makes use of an integer only and computes the 3 output bytes in case
of literal. The other one benefits from the knowledge of an existing
string, which for example exists in the case of H1 to H2 encoding.
include/common/hpack-enc.h