MEDIUM: checks: Remove dedicated sample fetches and use response ones instead
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 15:46:34 +0000 (17:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 May 2020 10:37:43 +0000 (12:37 +0200)
commite596d184be441be3b6895a3264e3a61c527de4b8
treee817f9541a89e75a2888a35442f368f5781b7411
parentaf4dc4ccaa27b5f73e451ceca1a15f88196a2898
MEDIUM: checks: Remove dedicated sample fetches and use response ones instead

All sample fetches in the scope "check." have been removed. Response sample
fetches must be used instead. It avoids keyword duplication. So, for instance,
res.hdr() must be now used instead of check.hdr().

To do so, following sample fetches have been added on the response :

  * res.body, res.body_len and res.body_size
  * res.hdrs and res.hdrs_bin

Sample feches dealing with the response's body are only useful in the health
checks context. When called from a stream context, there is no warranty on the
body presence. There is no option to wait the response's body.
doc/configuration.txt
reg-tests/checks/http-check-expect.vtc
src/checks.c
src/http_fetch.c
src/payload.c
src/sample.c