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

The new function hpack_encode_path() supports encoding a path into
the ":path" header. It knows about "/" and "/index.html" which use
a single byte, and falls back to literal encoding for other ones,
with a fast path for short paths < 127 bytes.
include/common/hpack-enc.h