Liking cljdoc? Tell your friends :D
Clojure only.

bff.http-client


callclj

(call {:keys [method url params body headers step-id]
       :or {method :get headers {}}})
source

errclj

(err code msg)
(err code msg detail)
(err code msg detail http-status)

Build a tagged error result. Optional detail (map) attaches free-form context; optional http-status (int) records the upstream HTTP status code when the failure originated from an HTTP response, so a step's spec-level errors: mapping can remap by status.

Build a tagged error result. Optional `detail` (map) attaches free-form
context; optional `http-status` (int) records the upstream HTTP status
code when the failure originated from an HTTP response, so a step's
spec-level `errors:` mapping can remap by status.
sourceraw docstring

error?clj

(error? result)
source

okclj

(ok data)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close