(wrap-format-exception f {:keys [include-data]})
Catches exceptions and returns a formatted response.
Catches exceptions and returns a formatted response.
(wrap-format-response f)
See ef/format-response
for an explanation of what this does
See `ef/format-response` for an explanation of what this does
(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-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