carbond.limiter.StaticKeyLimiterSelector

StaticKeyLimiterSelector is used to group incoming requests by a static key (essentially grouping all requests into the same bucket).

Class

class carbond.limiter.StaticKeyLimiterSelector()
staticKey
String
Default “*”
Description The static key used to group incoming requests.
hash
String
Description hash evaluates to staticKey.
key  
Arguments
  • req (request) – the current request
Returns the key used to group the current request or undefined if the key could not be generated
Return type String
Description This simply returns staticKey.

Example