(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)))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close