Liking cljdoc? Tell your friends :D

duct.middleware.web


wrap-hide-errorsclj

(wrap-hide-errors handler error-response)

Middleware that hides any uncaught exceptions behind a generic 500 internal error response. Intended for use in production.

Middleware that hides any uncaught exceptions behind a generic 500 internal
error response. Intended for use in production.
raw docstring

wrap-log-errorsclj

(wrap-log-errors handler logger)

Log any exceptions with the supplied logger, then re-throw them.

Log any exceptions with the supplied logger, then re-throw them.
raw docstring

wrap-log-requestsclj

(wrap-log-requests handler logger)

Log each request using the supplied logger. The logger must implement the duct.core.protocols/Logger protocol.

Log each request using the supplied logger. The logger must implement the
duct.core.protocols/Logger protocol.
raw docstring

wrap-not-foundclj

(wrap-not-found handler error-response)

Middleware that returns a 404 not found response if the handler returns nil.

Middleware that returns a 404 not found response if the handler returns nil.
raw docstring

wrap-route-aliasesclj

(wrap-route-aliases handler aliases)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close