MINOR: checks: Support log-format string to set the body for HTTP send rules
For http-check send rules, it is now possible to use a log-format string to set
the request's body. the keyword "body-lf" should be used instead of "body". If the
string eval fails, no body is added.
diff --git a/doc/configuration.txt b/doc/configuration.txt
index da5d05e..8ddd43f 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -4682,7 +4682,8 @@
http-check send [meth <method>] [{ uri <uri> | uri-lf <fmt> }>] [ver <version>]
- [hdr <name> <fmt>]* [body <string>] [comment <msg>]
+ [hdr <name> <fmt>]* [{ body <string> | body-lf <fmt> }]
+ [comment <msg>]
Add a possible list of headers and/or a body to the request sent during HTTP
health checks.
May be used in sections : defaults | frontend | listen | backend
@@ -4720,6 +4721,11 @@
HTTP health checks. If defined, the "Content-Length" header
is thus automatically added to the request.
+ body-lf <fmt> add the body defined by the log-format string <fmt> to the
+ request sent during HTTP health checks. If defined, the
+ "Content-Length" header is thus automatically added to the
+ request.
+
In addition to the request line defined by the "option httpchk" directive,
this one is the valid way to add some headers and optionally a body to the
request sent during HTTP health checks. If a body is defined, the associate