Liking cljdoc? Tell your friends :D

ehr-adapter.middleware.clj-http


->clj-http-reqclj

(->clj-http-req request)
source

<-clj-http-responseclj

(<-clj-http-response response)
source

clj-http-keys->motor-keysclj

source

motor-keys->clj-http-keysclj

source

wrapclj

(wrap handler)

Middleware that adapts internal engine requests to clj-http format and vice versa.

It translates the incoming request, executes the wrapped handler, unifies any network exceptions under the :http/failure error code, and transforms the response back to the engine's expected format. Args:

  • handler : A function that executes a clj-http-compatible HTTP request. Returns: A new function that accepts an internal engine request map and returns an internal engine response map.
Middleware that adapts internal engine requests to clj-http format and vice versa.

It translates the incoming request, executes the wrapped handler, unifies any network
exceptions under the `:http/failure` error code, and transforms the response back
to the engine's expected format.
Args:
- handler : A function that executes a clj-http-compatible HTTP request.
Returns:
A new function that accepts an internal engine request map and returns an internal
engine response map.
sourceraw docstring

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