(build-error-response self response-builder)
(increment-counter self storage)
(quota-exhausted? self)
(rate-limit-response self rsp)
(read-quota-state storage limit req)
Read the quota state from storage.
Generates a storage key from the limit and the ring request. If the
key is nil
, the request will not be rate-limited. Otherwise looks
up the current counter value from storage and based on the counter
the quota state is either exhausted or available.
Read the quota state from storage. Generates a storage key from the limit and the ring request. If the key is `nil`, the request will not be rate-limited. Otherwise looks up the current counter value from storage and based on the counter the quota state is either exhausted or available.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close