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 StringDescription 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 undefinedif the key could not be generatedReturn type StringDescription abstract Description This function takes a request and returns a key that can be used to group the request in order to apply a LimiterPolicyto the request in the appropriate context.- req (