]> git.kaiwu.me - haproxy.git/commit
MINOR: hpack: provide a function to encode an HTTP scheme
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 18:16:20 +0000 (19:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 08:07:02 +0000 (09:07 +0100)
commit820b3912609aa24a4520caa53a750782627e1ada
treedcea31055c9682da063f1d1b3f8d290edbb3ec18
parentbdabc3a25ff59277dd035fb7288725f6c7597fdc
MINOR: hpack: provide a function to encode an HTTP scheme

The new function hpack_encode_scheme() supports encoding a scheme
into the ":scheme" header. It knows about "https" and "http" which use
a single byte, and falls back to literal encoding for other ones.
include/common/hpack-enc.h