commit | eaeeb68f235061486c6511ccbed4bf7d1000c62c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Dec 10 19:26:51 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 11 09:07:02 2018 +0100 |
tree | 12ba0973e0f05c2bc690a279a581a2587e40fb96 | |
parent | 7561bcbb36dca7447d42055ba06e45a3676ffd3e [diff] |
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.