Simple response helpers to change the content type, redirect, or return a canned response
Simple response helpers to change the content type, redirect, or return a canned response
(content-type ctype content)
Wraps the response with the given content type and sets the body to the content.
Wraps the response with the given content type and sets the body to the content.
(empty)
Return a successful, but completely empty response
Return a successful, but completely empty response
(json content)
Wraps the response in the json content type and generates JSON from the content
Wraps the response in the json content type and generates JSON from the content
(jsonp func-name content)
Generates JSON for the given content and creates a javascript response for calling func-name with it.
Generates JSON for the given content and creates a javascript response for calling func-name with it.
(redirect url)
A header redirect to a different url
A header redirect to a different url
(status code content)
Wraps the content in the given status code
Wraps the content in the given status code
(xml content)
Wraps the response with the content type for xml and sets the body to the content.
Wraps the response with the content type for xml and sets the body to the content.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close