Takes a process and endpoint, and dispatches an http request. Must return the response object from the call to allow the runtime to update the rate limit.
Takes a process and endpoint, and dispatches an http request. Must return the response object from the call to allow the runtime to update the rate limit.
(rate-limited? process endpoint)
Takes a process and an endpoint and checks to see if the process is currently rate limited.
Takes a process and an endpoint and checks to see if the process is currently rate limited.
(start! token)
Takes a token for a bot and returns a channel to communicate with the message sending process.
Takes a token for a bot and returns a channel to communicate with the message sending process.
(stop! channel)
Takes the channel returned from start! and stops the messaging process.
Takes the channel returned from start! and stops the messaging process.
(update-rate-limit rate-limit response)
Takes a rate-limit and a response and returns an updated rate-limit.
If a rate limit headers are included in the response, then the rate limit is updated to them, otherwise the existing rate limit is used, but the remaining limit is decremented.
Takes a rate-limit and a response and returns an updated rate-limit. If a rate limit headers are included in the response, then the rate limit is updated to them, otherwise the existing rate limit is used, but the remaining limit is decremented.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close