Liking cljdoc? Tell your friends :D

donut.middleware

Defines a default middleware stack for donut apps.

Defines a default middleware stack for donut apps.
raw docstring

app-middlewareclj

(app-middleware handler & [config])

app-middleware-configclj


AppMiddlewareComponentclj

A donut.system component that applies configured middleware to a handler

A donut.system component that applies configured middleware to a handler
raw docstring

endpoint-defaults-configclj


MiddlewareComponentGroupclj


ring-defaults-configclj

A default configuration for a browser-accessible website, based on current best practice.

A default configuration for a browser-accessible website, based on current
best practice.
raw docstring

route-middlewareclj

This is route middleware because it's applied after reitit matches a route; it relies on route info.

This is route middleware because it's applied after reitit matches a route; it
relies on route info.
raw docstring

wrap-default-indexclj

(wrap-default-index handler
                    &
                    [{:keys [root exclude status]
                      :or {root "public" exclude ["json"] status 404}}])

wrap-format-exceptionclj

(wrap-format-exception handler {:keys [include-data]})

Catches exceptions and returns a formatted response.

Catches exceptions and returns a formatted response.
raw docstring

wrap-latencyclj

(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
raw docstring

wrap-merge-paramsclj

(wrap-merge-params handler)

Merge all params maps, place under :all-params

Merge all params maps, place under `:all-params`
raw docstring

wrap-muuntaja-encodeclj

(wrap-muuntaja-encode handler)

indicate we want to encode response with muuntaja. muuntaja handles the conversion between clojure data structures and wire formats

indicate we want to encode response with muuntaja. muuntaja handles the
conversion between clojure data structures and wire formats
raw docstring

wrap-not-foundclj

(wrap-not-found handler)
(wrap-not-found handler error-handler)

Middleware that returns a 404 'Not Found' response from an error handler if the base handler returns nil.

Used to provide the index.html file by default for frontend routes

Middleware that returns a 404 'Not Found' response from an error handler if
the base handler returns nil.

Used to provide the index.html file by default for frontend routes
raw docstring

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

× close