The protocols in which the HTTP client is based.
The protocols in which the HTTP client is based.
(-send _ request options)
Given a request and options, perform the request and return a value
that implements the Request
protocol.
Given a request and options, perform the request and return a value that implements the `Request` protocol.
(-listen _ cb)
Call the given cb
function with a type that implements Response
when the request completes
Call the given `cb` function with a type that implements `Response` when the request completes
(-error _)
Given a request that has completed with an error, return the keyword corresponding to its error.
Given a request that has completed with an error, return the keyword corresponding to its error.
(-response _)
Given a response that has completed successfully, return the response map.
Given a response that has completed successfully, return the response map.
(-success? _)
Return true
if a response was returned from the server.
Return `true` if a response was returned from the server.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close