DOC: Improve documentation of the various hdr() fetches
authorTim Duesterhus <tim@bastelstu.be>
Sat, 23 Jan 2021 16:50:21 +0000 (17:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Jan 2021 09:55:20 +0000 (10:55 +0100)
commit7fb5628b2ed56a2c667d29bf58dfa2ffcaaeb3a4
treedc86787e24c4678122c7d62aae4e103993622f9e
parent3dfbd27af6c8a71ee7b35839e2d3b81180107e38
DOC: Improve documentation of the various hdr() fetches

GitHub issue #796 notes that many administrators miss the fact that the `hdr()`
fetch (without the `f`) splits the header value at commas. This is only
mentioned at the end of a long paragraph.

This patch attempts to improve the documentation by:
- Explaning the "comma issue" as early as possible.
- Adding newlines to split the explanation into distinct sections.
- Reducing duplication by making the `res` siblings refer to their `req`
  counterparts.

This patch may be backported as long as it applies cleanly. During the
refactoring I needed to adjust several explanations for consistency and not all
of them might be available in older branches.

(cherry picked from commit 27c70ae23c1f5b39c9757387559072a096c8aa8c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
doc/configuration.txt