mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-15 05:41:16 +01:00
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.
This commit is contained in:
parent
e2907c7ee3
commit
5b4e16ee2d
@ -5903,6 +5903,7 @@ http-after-response <action> <options...> [ { if | unless } <condition> ]
|
||||
- del-map(<file-name>) <key fmt>
|
||||
- replace-header <name> <regex-match> <replace-fmt>
|
||||
- replace-value <name> <regex-match> <replace-fmt>
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -6000,6 +6001,13 @@ http-after-response replace-value <name> <regex-match> <replace-fmt>
|
||||
# outputs:
|
||||
Cache-Control: max-age=3600, private
|
||||
|
||||
http-after-response sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
http-after-response sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
http-after-response sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
http-after-response sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
@ -6650,6 +6658,7 @@ http-request <action> [options...] [ { if | unless } <condition> ]
|
||||
- replace-uri <match-regex> <replace-fmt>
|
||||
- replace-value <name> <match-regex> <replace-fmt>
|
||||
- return [status <code>] [content-type <type>] ...
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -7855,6 +7864,7 @@ http-response <action> <options...> [ { if | unless } <condition> ]
|
||||
- replace-header <name> <regex-match> <replace-fmt>
|
||||
- replace-value <name> <regex-match> <replace-fmt>
|
||||
- return [status <code>] [content-type <type>] ...
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -8033,6 +8043,13 @@ http-response return [status <code>] [content-type <type>]
|
||||
response. Please refer to "http-request return" for a complete
|
||||
description. No further "http-response" rules are evaluated.
|
||||
|
||||
http-response sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
http-response sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
http-response sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
http-response sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
@ -12911,6 +12928,7 @@ tcp-request connection <action> <options...> [ { if | unless } <condition> ]
|
||||
- expect-netscaler-cip layer4
|
||||
- expect-proxy layer4
|
||||
- reject
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -13009,6 +13027,13 @@ tcp-request connection reject [ { if | unless } <condition> ]
|
||||
content" rules should be used instead, as "tcp-request session" rules will
|
||||
not log either.
|
||||
|
||||
tcp-request connection sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
tcp-request connection sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request connection sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request connection sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
@ -13122,6 +13147,7 @@ tcp-request content <action> [{if | unless} <condition>]
|
||||
- capture <sample> len <length>
|
||||
- do-resolve(<var>,<resolvers>,[ipv4,ipv6]) <expr>
|
||||
- reject
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -13298,6 +13324,13 @@ tcp-request content reject [ { if | unless } <condition> ]
|
||||
This is used to reject the connection. No further "tcp-request content" rules
|
||||
are evaluated.
|
||||
|
||||
tcp-request content sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
tcp-request content sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request content sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request content sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
@ -13518,6 +13551,7 @@ tcp-request session <action> [{if | unless} <condition>]
|
||||
supported:
|
||||
- accept
|
||||
- reject
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -13589,6 +13623,13 @@ tcp-request session reject [ { if | unless } <condition> ]
|
||||
This is used to reject the connection. No further "tcp-request session" rules
|
||||
are evaluated.
|
||||
|
||||
tcp-request session sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
tcp-request session sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request session sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-request session sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
@ -13690,6 +13731,7 @@ tcp-response content <action> [{if | unless} <condition>]
|
||||
- accept
|
||||
- close
|
||||
- reject
|
||||
- sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
- sc-inc-gpc(<idx>,<sc-id>)
|
||||
- sc-inc-gpc0(<sc-id>)
|
||||
- sc-inc-gpc1(<sc-id>)
|
||||
@ -13750,6 +13792,13 @@ tcp-response content reject [ { if | unless } <condition> ]
|
||||
This is used to reject the response. No further "tcp-response content" rules
|
||||
are evaluated.
|
||||
|
||||
tcp-response content sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
|
||||
[ { if | unless } <condition> ]
|
||||
|
||||
This action increments the General Purpose Counter according to the sticky
|
||||
counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
|
||||
a complete description.
|
||||
|
||||
tcp-response content sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-response content sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
|
||||
tcp-response content sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user