API for noir.response
- ()
Usage:
(ns your-namespace
(:require noir.response))
Overview
Simple response helpers to change the content type, redirect, or return a canned response
Public Variables and Functions
content-type
function
Usage: (content-type ctype content)
Wraps the response with the given content type and sets the body to the content.
empty
function
Usage: (empty)
Return a successful, but completely empty response
json
function
Usage: (json content)
Wraps the response in the json content type and stringifies the given content
redirect
function
Usage: (redirect url)
A header redirect to a different url
status
function
Usage: (status code content)
Wraps the content in the given status code
xml
function
Usage: (xml content)
Wraps the response with the content type for xml and sets the body to the content.