Responses
HTTP responses are represented as Clojure maps, and should follow thee Ring specification. This means Compojure expects response maps to contain at least the following keys:
Standard Ring keys
:status
- An integer representing the HTTP status code.
:headers
- A Clojure map of strings to represent the headers of the response.
Optional Ring keys
:body
- The body of the response. Can be either a String, ISeq, File or InputStream object.
Optional Compojure keys
:session
- If set, the HTTP session is set to this value. Must be a Clojure map.
:flash
- If set, the flash stored in the HTTP session is set to this value. Must be a Clojure map.