]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hpack: provide a function to encode an HTTP method
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 17:24:19 +0000 (18:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 08:07:02 +0000 (09:07 +0100)
commit39c80ebff0941ee277ce9f085a1a2fad37b8bc36
treef374816203761ef553b31256cd7acf4ef9ada91d
parentaafdf583338b0461eb4768916a4bd897f891238c
MINOR: hpack: provide a function to encode an HTTP method

The new function hpack_encode_method() supports encoding a method.
It knows about GET and POST which use a single byte, and falls back
to literal encoding for other ones.
include/common/hpack-enc.h