Liking cljdoc? Tell your friends :D

noir.response

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
raw docstring

content-typeclj

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

emptyclj

(empty)

Return a successful, but completely empty response

Return a successful, but completely empty response
sourceraw docstring

jsonclj

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

jsonpclj

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

redirectclj

(redirect url)

A header redirect to a different url

A header redirect to a different url
sourceraw docstring

statusclj

(status code content)

Wraps the content in the given status code

Wraps the content in the given status code
sourceraw docstring

xmlclj

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

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

× close