carbond.limiter.LimiterSelector¶
LimiterSelector
is used to group incoming requests.
Each new incoming request will then be evaluated against a
LimiterPolicy
in the context of its group.
Class¶
-
class
carbond.limiter.
LimiterSelector
()¶ abstract
- ¶
hash String
Description abstract Description A key used to bucket similar instances of LimiterSelector
.
- ¶
key Arguments - req (
request
) – the current request
Returns the key used to group the current request or undefined
if the key could not be generatedReturn type String
Description abstract Description This function takes a request and returns a key that can be used to group the request in order to apply a LimiterPolicy
to the request in the appropriate context.- req (