Liking cljdoc? Tell your friends :D
ClojureScript only.

httpurr.protocols

The protocols in which the HTTP client is based.

The protocols in which the HTTP client is based.
raw docstring

Abortcljsprotocol

abort!cljs

(abort! _)

Abort a request.

Abort a request.
source

Clientcljsprotocol

send!cljs

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

Requestcljsprotocol

listen!cljs

(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
source

Responsecljsprotocol

errorcljs

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

responsecljs

(response _)

Given a response that has completed successfully, return the response map.

Given a response that has completed successfully, return the response
map.

success?cljs

(success? _)

Return true if a response was returned from the server.

Return `true` if a response was returned from the server.
source

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

× close