Liking cljdoc? Tell your friends :D

httpurr.client

The HTTP client. This namespace provides a low-level send! primitive for performing requests as well as aliases for all the HTTP methods.

The HTTP client. This namespace provides a low-level `send!` primitive for
performing requests as well as aliases for all the HTTP methods.
raw docstring

abort!cljs

(abort! p)

Given a promise resulting from a request, make a best-effort to abort the operation if the promise is still pending.

Given a promise resulting from a request, make a best-effort
to abort the operation if the promise is still pending.
sourceraw docstring

deletecljs

source

getcljs

source

source

keyword->methodcljs

source

methodcljs

(method m)
source

optionscljs

source

patchcljs

source

postcljs

source

putcljs

source

request->promisecljs

(request->promise request)

Given a object that implements httpurr.protocols.Request, return a promise that will be resolved if there is a response and rejected on timeout, exceptions, HTTP errors or abortions.

Given a object that implements `httpurr.protocols.Request`,
return a promise that will be resolved if there is a
response and rejected on timeout, exceptions, HTTP errors
or abortions.
sourceraw docstring

send!cljs

(send! client request)
(send! client request options)

Given a request map and maybe an options map, perform the request and return a promise that will be resolved when receiving the response.

If the request timeouts, throws an exception or is aborted the promise will be rejected.

The available options are:

  • :timeout: a timeout for the request in miliseconds
Given a request map and maybe an options map, perform
the request and return a promise that will be resolved
when receiving the response.

If the request timeouts, throws an exception or is aborted
the promise will be rejected.

The available options are:
   - `:timeout`: a timeout for the request in miliseconds
sourceraw docstring

tracecljs

source

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

× close