From: Aurelien DARRAGON Date: Fri, 17 Mar 2023 10:46:37 +0000 (+0100) Subject: MINOR: doc: missing entries for sc-add-gpc() X-Git-Tag: v2.8-dev6~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4e16ee2d809b9d7aeb72fdff8c330718659c73;p=thirdparty%2Fhaproxy.git MINOR: doc: missing entries for sc-add-gpc() When sc-add-gpc() action was implemented in 5a72d03 ("MINOR: stick-table: implement the sc-add-gpc() action"), its usage was only documented for "http-request", but according to the code it now applies everywhere sc-inc-gpc() is mentioned. Adding the missing entries in the doc everywhere the action may be used. The issue was detected by the haproxy-controller bot and was reported by Pratik Mohanty and Marko Juraga. No backport needed, unless 5a72d03 ("MINOR: stick-table: implement the sc-add-gpc() action") is being backported. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index d1793849a9..446d1a2d84 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -5903,6 +5903,7 @@ http-after-response [ { if | unless } ] - del-map() - replace-header - replace-value + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -6000,6 +6001,13 @@ http-after-response replace-value # outputs: Cache-Control: max-age=3600, private +http-after-response sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + http-after-response sc-inc-gpc(,) [ { if | unless } ] http-after-response sc-inc-gpc0() [ { if | unless } ] http-after-response sc-inc-gpc1() [ { if | unless } ] @@ -6650,6 +6658,7 @@ http-request [options...] [ { if | unless } ] - replace-uri - replace-value - return [status ] [content-type ] ... + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -7855,6 +7864,7 @@ http-response [ { if | unless } ] - replace-header - replace-value - return [status ] [content-type ] ... + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -8033,6 +8043,13 @@ http-response return [status ] [content-type ] response. Please refer to "http-request return" for a complete description. No further "http-response" rules are evaluated. +http-response sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + http-response sc-inc-gpc(,) [ { if | unless } ] http-response sc-inc-gpc0() [ { if | unless } ] http-response sc-inc-gpc1() [ { if | unless } ] @@ -12911,6 +12928,7 @@ tcp-request connection [ { if | unless } ] - expect-netscaler-cip layer4 - expect-proxy layer4 - reject + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -13009,6 +13027,13 @@ tcp-request connection reject [ { if | unless } ] content" rules should be used instead, as "tcp-request session" rules will not log either. +tcp-request connection sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + tcp-request connection sc-inc-gpc(,) [ { if | unless } ] tcp-request connection sc-inc-gpc0() [ { if | unless } ] tcp-request connection sc-inc-gpc1() [ { if | unless } ] @@ -13122,6 +13147,7 @@ tcp-request content [{if | unless} ] - capture len - do-resolve(,,[ipv4,ipv6]) - reject + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -13298,6 +13324,13 @@ tcp-request content reject [ { if | unless } ] This is used to reject the connection. No further "tcp-request content" rules are evaluated. +tcp-request content sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + tcp-request content sc-inc-gpc(,) [ { if | unless } ] tcp-request content sc-inc-gpc0() [ { if | unless } ] tcp-request content sc-inc-gpc1() [ { if | unless } ] @@ -13518,6 +13551,7 @@ tcp-request session [{if | unless} ] supported: - accept - reject + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -13589,6 +13623,13 @@ tcp-request session reject [ { if | unless } ] This is used to reject the connection. No further "tcp-request session" rules are evaluated. +tcp-request session sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + tcp-request session sc-inc-gpc(,) [ { if | unless } ] tcp-request session sc-inc-gpc0() [ { if | unless } ] tcp-request session sc-inc-gpc1() [ { if | unless } ] @@ -13690,6 +13731,7 @@ tcp-response content [{if | unless} ] - accept - close - reject + - sc-add-gpc(,) { | } - sc-inc-gpc(,) - sc-inc-gpc0() - sc-inc-gpc1() @@ -13750,6 +13792,13 @@ tcp-response content reject [ { if | unless } ] This is used to reject the response. No further "tcp-response content" rules are evaluated. +tcp-response content sc-add-gpc(,) { | } + [ { if | unless } ] + + This action increments the General Purpose Counter according to the sticky + counter designated by . Please refer to "http-request sc-add-gpc" for + a complete description. + tcp-response content sc-inc-gpc(,) [ { if | unless } ] tcp-response content sc-inc-gpc0() [ { if | unless } ] tcp-response content sc-inc-gpc1() [ { if | unless } ]