Liking cljdoc? Tell your friends :D

toyokumo.commons.ring.response


attachmentclj

(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)))
sourceraw docstring

bad-requestclj

source

content-dispositionclj

(content-disposition resp value)
source

content-typeclj

source

createdclj

source

csvclj

(csv resp)
(csv resp charset)
source

forbiddenclj

source

foundclj

source

source

htmlclj

(html resp)
(html resp charset)
source

internal-server-errorclj

source

internal-server-error!clj

source

jsonclj

(json resp)
(json resp charset)
source

no-contentclj

source

not-acceptableclj

source

not-foundclj

source

not-found!clj

source

not-modifiedclj

source

okclj

source

see-otherclj

source

too-many-requestsclj

source

unauthorizedclj

source

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

× close