MINOR: http-fetch: Add a sample to get the transaction status code
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Nov 2023 17:49:47 +0000 (18:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Nov 2023 10:11:12 +0000 (11:11 +0100)
commit2de9e3ae24dda5c4ea1d4f2a4bd9358e8ab2f712
treed57522bd23233e43ccc7d2efb130fa7e7daf8ede
parent5d9c25bbea14fdc1a7caeb1d4b4164794b9e87c2
MINOR: http-fetch: Add a sample to get the transaction status code

It was possible get the status code in the HTTP response and the one
received from the server. Thanks to 'txn.status', it is now possible to get
the transaction status code. It is equivalent to '%ST' in log-format.

Most of time, it is the same than 'status', except if the status code of the
HTTP reply does not match the one used to interrupt the transaction. For
instance, an error file use mapped on 400 containing a 404.
doc/configuration.txt
src/http_fetch.c