Liking cljdoc? Tell your friends :D

httpurr.protocols

The protocols in which the HTTP client is based.

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

Clientclj/s≠protocol

-sendclj/s

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

Requestclj/s≠protocol

-listenclj/s

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

Responseclj/s≠protocol

-errorclj/s

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

-responseclj/s

(-response _)

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

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

-success?clj/s

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