]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: add a test for the HTTP response fetches
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:16:15 +0000 (20:16 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:26:01 +0000 (16:26 +0200)
commit763ed049a6dc966b86e85d1041fe999dee200d22
tree0cd533fe82ab52e9ed10cd02045f64570be41d88
parent571b68bcaa8ffd08ea83b540e0bb611d9d735193
REGTESTS: sample_fetches: add a test for the HTTP response fetches

Almost none of the res.* sample fetches was covered. This test checks
status, txn.status, res.ver, res.hdr, res.hdr_val, res.hdr_ip,
res.hdr_cnt with an occurrence index, res.hdr_names with and without a
custom delimiter, res.fhdr and res.fhdr_cnt against res.hdr on a
comma-delimited list, res.cook, res.cook_cnt, res.cook_val,
res.cook_names, res.body_size, res.hdrs, res.hdrs_bin, res.comp,
res.comp_algo and res.timer.hdr, as well as the deprecated shdr, shdr_val,
shdr_ip, shdr_cnt, scook, scook_cnt, scook_val and resp_ver aliases, and
the capture.res.hdr and capture.res.ver fetches fed by a response header
capture.
reg-tests/sample_fetches/http_response.vtc [new file with mode: 0644]