Liking cljdoc? Tell your friends :D

ring.middleware.flash

Middleware that adds session-based flash store that persists only to the
next request in the same session.

flash-request

Type: var

Added: 1.2

Arguments:

[request]
Adds :flash key to request from :_flash in session.

View source

flash-response

Type: var

Added: 1.2

Arguments:

[response request]
If response has a :flash key, saves it in :_flash of session for next
request.

View source

wrap-flash

Type: var

Arguments:

[handler]
If a :flash key is set on the response by the handler, a :flash key with
the same value will be set on the next request that shares the same session.
This is useful for small messages that persist across redirects.

View source

Can you improve this documentation?Edit on GitHub

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

× close