API for noir.response - Noir ()


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 generates JSON from the content


jsonp

function
Usage: (jsonp func-name content)
Generates JSON for the given content and creates a javascript response for calling 
func-name with it.


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.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.