Liking cljdoc? Tell your friends :D

toyokumo.commons.ring.response


acceptedclj

source

attachmentclj

(attachment resp filename)

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

conflictclj

source

content-dispositionclj

(content-disposition resp value)
source

content-typeclj

source

createdclj

source

csvclj

(csv resp)
(csv resp charset)
source

flashclj

(flash resp m)

Add flash data. See ring.middleware.flash/wrap-flash

Add flash data. See ring.middleware.flash/wrap-flash
sourceraw docstring

flash-error-messageclj

(flash-error-message resp msg)
source

flash-success-messageclj

(flash-success-message resp msg)
source

forbiddenclj

source

foundclj

source

goneclj

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

moved-permanentlyclj

source

no-contentclj

source

not-acceptableclj

source

not-foundclj

source

not-found!clj

source

not-modifiedclj

source

okclj

source

permanent-redirectclj

source

see-otherclj

source

sessionclj

(session resp m)
(session resp m recreate?)

Write session. See ring.middleware.session

Write session. See ring.middleware.session
sourceraw docstring

temporary-redirectclj

source

too-many-requestsclj

source

unauthorizedclj

source

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

× close