Liking cljdoc? Tell your friends :D

compojure-throttle.core


enabled?clj

(enabled?)
source

reset-cacheclj

(reset-cache)

Testing helper that resets the content of the cache - should allow tests to run from a known base

Testing helper that resets the content of the cache - should allow tests to run from a known base
sourceraw docstring

throttleclj

(throttle handler)
(throttle finder handler)

Throttle incoming connections from a given source. By default this is based on IP.

Optionally takes a second argument which is a function used to lookup the 'token' that determines whether or not the request is unique. For example a function that returns a user token to limit by user id rather than ip. This function should accept the request as its single argument

Throttle incoming connections from a given source. By default this is based on IP.

Optionally takes a second argument which is a function used to lookup the 'token'
that determines whether or not the request is unique. For example a function that
returns a user token to limit by user id rather than ip. This function should accept
the request as its single argument
sourceraw docstring

token-periodclj

(token-period)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close