From: Christopher Faulet Date: Tue, 24 Nov 2020 16:13:24 +0000 (+0100) Subject: DOC: config: Move req.hdrs and req.hdrs_bin in L7 samples fetches section X-Git-Tag: v2.3.2~2 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=2616784a08c83f65b0e451bba8dcba5a844e8dac;p=haproxy-2.3.git DOC: config: Move req.hdrs and req.hdrs_bin in L7 samples fetches section req.hdrs and req.hdrs_bin are L7 sample fetches, not L6. They were in the wrong section. This patch may be backported as far as 1.8. (cherry picked from commit 687a68e2d04900e84317d066de80891a7f848747) Signed-off-by: William Lallemand --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 93c9937..da3a091 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -17828,25 +17828,6 @@ payload_lv(,[,]) : binary (deprecated) (e.g. "stick on", "stick match"), and for "res.payload_lv" when used in the context of a response such as in "stick store response". -req.hdrs : string - Returns the current request headers as string including the last empty line - separating headers from the request body. The last empty line can be used to - detect a truncated header block. This sample fetch is useful for some SPOE - headers analyzers and for advanced logging. - -req.hdrs_bin : binary - Returns the current request headers contained in preparsed binary form. This - is useful for offloading some processing with SPOE. Each string is described - by a length followed by the number of bytes indicated in the length. The - length is represented using the variable integer encoding detailed in the - SPOE documentation. The end of the list is marked by a couple of empty header - names and values (length of 0 for both). - - *() - - int: refer to the SPOE documentation for the encoding - str: - req.len : integer req_len : integer (deprecated) Returns an integer value corresponding to the number of bytes present in the @@ -18322,7 +18303,24 @@ hdr_val([[,]]) : integer (deprecated) the first one. Negative values indicate positions relative to the last one, with -1 being the last one. A typical use is with the X-Forwarded-For header. +req.hdrs : string + Returns the current request headers as string including the last empty line + separating headers from the request body. The last empty line can be used to + detect a truncated header block. This sample fetch is useful for some SPOE + headers analyzers and for advanced logging. + +req.hdrs_bin : binary + Returns the current request headers contained in preparsed binary form. This + is useful for offloading some processing with SPOE. Each string is described + by a length followed by the number of bytes indicated in the length. The + length is represented using the variable integer encoding detailed in the + SPOE documentation. The end of the list is marked by a couple of empty header + names and values (length of 0 for both). + + *() + int: refer to the SPOE documentation for the encoding + str: http_auth() : boolean Returns a boolean indicating whether the authentication data received from