(wrap-format-exception f {:keys [include-data]})
Catches exceptions and returns a formatted response.
Catches exceptions and returns a formatted response.
(wrap-latency handler {:keys [sleep sleep-max]})
Introduce latency, useful for local dev when you want to simulate more realistic response times
Introduce latency, useful for local dev when you want to simulate more realistic response times
(wrap-merge-params f)
Some middleware puts params in :body-params. Move it to :params
Some middleware puts params in :body-params. Move it to :params
(wrap-not-found handler error-handler)
Middleware that returns a 404 'Not Found' response from an error handler if the base handler returns nil.
Middleware that returns a 404 'Not Found' response from an error handler if the base handler returns nil.
(wrap-print f)
Print a request and response. For debugging.
Print a request and response. For debugging.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close