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.
(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.
(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 milisecondsGiven 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
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 |