(build-cache-key req-opts)Create a cache key based on API values that make each call distinct.
Create a cache key based on API values that make each call distinct.
(build-req-opts path
method
{:keys [path-params body-param content-types accepts auth-names]
:as opts})Reconstitute opts appropriate for request call from a general set of opts, path and method
Reconstitute opts appropriate for request call from a general set of opts, path and method
(cache-clear-by-token token)Remove any responses associated with the token parameter
Remove any responses associated with the token parameter
(cache-get req-opts)For a given req-opt, see if there is a cached value. Do not check if expired
For a given req-opt, see if there is a cached value. Do not check if expired
(cache-put! req-opts resp)Cache the request based on the req-opt map
Cache the request based on the req-opt map
(call-api path method opts)Call an API by making HTTP request and return its response.
Call an API by making HTTP request and return its response.
(filter-key-fn token)Create a reduce-kv function that filters the map by the given token
Create a reduce-kv function that filters the map by the given token
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 |