MINOR: checks: Add support of payload-based sample fetches
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Apr 2020 07:38:08 +0000 (09:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:06:43 +0000 (11:06 +0200)
commit78f371e49878d46f9937a76b16c064edd04c522c
tree4b480ecd76264f879a435c6329ad8bfa41d72f96
parent16fff67e2e7bdb76e93caae0d7d83b675f281882
MINOR: checks: Add support of payload-based sample fetches

It is now possible to call check.payload(), check.payload_lv() and check.len()
sample fetches from any sample expression or log-format string in a tcp-check
based ruleset. In fact, check.payload() was already added. But instead of having
a specific function to handle this sample fetch, we use the same than
req.payload().

These sample fetches act on the check input buffer, containing data received for
the server. So it should be part of or after an expect rule, but before any send
rule. Because the input buffer is cleared at this stage.
doc/configuration.txt
src/checks.c
src/payload.c