]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: config: unify sample conv|fetches optional arguments syntax
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Jan 2025 21:13:09 +0000 (22:13 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 16 Jan 2025 10:49:55 +0000 (11:49 +0100)
commitdfdee47a8e9445c6d0f016e9dda4dd45aea718a7
tree82504b10b2acf0590f2fff8a017cfb76ff8ad21a
parente6429166b981937ab5b0fa3d0d816a8afd68f2c2
DOC: config: unify sample conv|fetches optional arguments syntax

The most common way (and proper way it seems) to declare optional
arguments in sample fetch or converters' prototype is to declare
them between square brackets, including the leading coma (because the
coma should be omitted if the argument is not provided). Also, when
multiple optional arguments are found, we should apply the same logic
but recursively.

In this patch we fix prototypes that include optional arguments and don't
follow this syntax. This improves readibility and sets the norm for
upcoming sample fetches/converters.
doc/configuration.txt