]> git.kaiwu.me - haproxy.git/commit
MINOR: http_fetch: Add support for checks to `unique-id` fetch
authorTim Duesterhus <tim@bastelstu.be>
Mon, 13 Apr 2026 17:37:31 +0000 (19:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Apr 2026 18:02:21 +0000 (20:02 +0200)
commited0c51d2c0944b51e6a571d1d031905ce2ce3484
treed85cd26f21073dc7149877619e73c7ff59b8bf58
parent2c748125f5c8fcea44dc0f5a891beef4d4288abb
MINOR: http_fetch: Add support for checks to `unique-id` fetch

This allows to use the `unique-id` fetch within `tcp-check` or `http-check`
ruleset. The format is taken from the checked server's backend (which is
naturally inherited from the corresponding `defaults` section).

This is particularly useful with

    http-check send ... hdr request-id %[unique-id]

to ensure all requests sent by HAProxy have a unique ID header attached.

This resolves GitHub Issue #3307.

Reviewed-by: Volker Dusch <github@wallbash.com>
doc/configuration.txt
reg-tests/checks/unique_id.vtc [new file with mode: 0644]
src/http_fetch.c