(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |