MINOR: http_ext/7239: warn the user when fetch is not available
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 6 Jan 2023 14:06:49 +0000 (15:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
commitd745a3f117783fb4aa4bcdf62a0a18e589520574
tree470c202e06ffce22453af32ede9a65181f784efb
parent9ded834adc79599cf2b9d324001798629ef9cffc
MINOR: http_ext/7239: warn the user when fetch is not available

http option forwarded (rfc7239) supports sample expressions when
configuring 'host', 'for' and 'by' parameters.

However, since we are in a http-backend-only context, right after http
header is processed, we have a limited resolution scope for the sample
expression provided by the user.

To prevent any confusion, a warning is emitted when parsing the option
if the user relies on a sample expression (more precisely a fetch) which
would yield unexpected results at runtime when processing the option.
src/http_ext.c