]> git.kaiwu.me - haproxy.git/commit
MINOR: http: add two header parsing functions
authorMaxime Henrion <mhenrion@haproxy.com>
Sat, 23 May 2026 01:18:47 +0000 (21:18 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2026 14:42:35 +0000 (16:42 +0200)
commitef73a1f64a2ffb3907897d1db297884dbf96ef27
treecc2cf2db850f0e20e3fa2dda6737c58ef9f009ae
parentdc50a814c785430680a07bd6689ce61b1f4065d6
MINOR: http: add two header parsing functions

Add http_next_hdr_value() to iterate over the comma-separated values
that some headers contain. Add http_get_hdr_param() to iterate over the
';'-separated parameters that may follow a value.

Currently unused but will be used for parsing Link headers in the cache
to support 103 Early Hints, and could also clean up Cache-Control
parsing among others.
include/haproxy/http-t.h
include/haproxy/http.h
src/http.c