(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |