(apply-default-headers! xhr headers)
Takes an XhrIo object and applies the default-headers to it.
Takes an XhrIo object and applies the default-headers to it.
(apply-response-type! xhr response-type)
Takes an XhrIo object and sets response-type if not nil.
Takes an XhrIo object and sets response-type if not nil.
(build-xhr {:keys [with-credentials? default-headers response-type]
:as request})
Builds an XhrIo object from the request parameters.
Builds an XhrIo object from the request parameters.
(jsonp {:keys [timeout callback-name keywordize-keys? cancel]
:or {keywordize-keys? true}
:as request})
Execute the JSONP request corresponding to the given Ring request map and return a promesa promise.
Execute the JSONP request corresponding to the given Ring request map and return a promesa promise.
(request {:keys [request-method] :as request})
Execute the HTTP request corresponding to the given Ring request map and return a core.async channel.
Execute the HTTP request corresponding to the given Ring request map and return a core.async channel.
(xhr {:keys [request-method headers body progress cancel] :as request})
Execute the HTTP request corresponding to the given Ring request map and return a promesa promise.
Execute the HTTP request corresponding to the given Ring request map and return a promesa promise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close