(attachment resp filename)
(attachment resp filename charset)
Use when you want to make a client save response as a file. For example: (let [csv-str "foo, bar"] (-> (ok csv-str) (attachment "foobar.csv") (csv)))
Use when you want to make a client save response as a file. For example: (let [csv-str "foo, bar"] (-> (ok csv-str) (attachment "foobar.csv") (csv)))
(flash resp m)
Add flash data. See ring.middleware.flash/wrap-flash
Add flash data. See ring.middleware.flash/wrap-flash
(session resp m)
(session resp m recreate?)
Write session. See ring.middleware.session
Write session. See ring.middleware.session
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close