Liking cljdoc? Tell your friends :D

crux.remote-api-client


*internal-http-request-fn*clj

Can be rebound using binding or alter-var-root to a function that takes a request map and returns a response map. The :body for POSTs will be provided as an EDN string by the caller. Should return the result body as a string by default, or as a stream when the :as :stream option is set.

Will be called with :url, :method, :body, :headers and optionally :as with the value :stream.

Expects :body, :status and :headers in the response map. Should not throw exceptions based on status codes of completed requests.

Defaults to using clj-http or http-kit if available.

Can be rebound using binding or alter-var-root to a
function that takes a request map and returns a response
map. The :body for POSTs will be provided as an EDN string by the
caller. Should return the result body as a string by default, or as
a stream when the :as :stream option is set.

Will be called with :url, :method, :body, :headers and
optionally :as with the value :stream.

Expects :body, :status and :headers in the response map. Should not
throw exceptions based on status codes of completed requests.

Defaults to using clj-http or http-kit if available.
sourceraw docstring

new-api-clientclj

(new-api-client url)
source

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

× close