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 is a website building & hosting documentation for Clojure/Script libraries

× close