From 5d9c25bbea14fdc1a7caeb1d4b4164794b9e87c2 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 27 Nov 2023 18:27:47 +0100 Subject: [PATCH] DOC: config: Improve 'status' sample documentation We clearly state the 'status' sample returns the status code the client will receive, if no change happens on the HTTP response. This should avoid ambiguities with the 'server-status' sample fetch. --- doc/configuration.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 76647e5..b4827e0 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -22838,7 +22838,9 @@ set-cookie([]) : string (deprecated) status : integer Returns an integer containing the HTTP status code in the HTTP response, for example, 302. It is mostly used within ACLs and integer ranges, for example, - to remove any Location header if the response is not a 3xx. + to remove any Location header if the response is not a 3xx. It will be the + status code received by the client if it is not changed, via a 'set-status' + action for instance. It may be used in tcp-check based expect rules. -- 1.7.10.4