Liking cljdoc? Tell your friends :D
ClojureScript only.

macchiato.middleware.node-middleware


wrap-node-middlewarecljs

(wrap-node-middleware handler node-mw & {:keys [req-map]})

Executes the given Node.js middleware function with the original :node/request and :node/response objects before calling the handler. The :req-map maps properties from the resulting :node/request object to keys in the request map passed to the handler (js->clj is applied to the values).

Executes the given Node.js middleware function with the original
:node/request and :node/response objects before calling the handler.
The :req-map maps properties from the resulting :node/request object to keys
in the request map passed to the handler (js->clj is applied to the values).
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