]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: Add fetcher for getting all cookie names
authorRuei-Bang Chen <rebang100@gmail.com>
Fri, 27 Oct 2023 20:59:21 +0000 (13:59 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Nov 2023 08:57:06 +0000 (09:57 +0100)
commit7a1ec235cd69628a6bcece061e85fe3bfc9d488a
treee2785686209fab6652d75a48105167dde4c5d7b9
parente826bc3dfa167b2b4596fcf22d9c9a4575c52040
MINOR: sample: Add fetcher for getting all cookie names

This new fetcher can be used to extract the list of cookie names from
Cookie request header or from Set-Cookie response header depending on
the stream direction. There is an optional argument that can be used
as the delimiter (which is assumed to be the first character of the
argument) between cookie names. The default delimiter is comma (,).

Note that we will treat the Cookie request header as a semi-colon
separated list of cookies and each Set-Cookie response header as
a single cookie and extract the cookie names accordingly.
doc/configuration.txt
include/haproxy/http.h
reg-tests/sample_fetches/cook.vtc
src/http.c
src/http_fetch.c