Liking cljdoc? Tell your friends :D

compojure.response

A protocol for generating Ring response maps

A protocol for generating Ring response maps
raw docstring

Renderablecljprotocol

A protocol that tells Compojure how to handle the return value of routes defined by [[GET]], [[POST]], etc.

This protocol supports rendering strings, maps, functions, refs, files, seqs, input streams and URLs by default, and may be extended to cover many custom types.

A protocol that tells Compojure how to handle the return value of routes
defined by [[GET]], [[POST]], etc.

This protocol supports rendering strings, maps, functions, refs, files, seqs,
input streams and URLs by default, and may be extended to cover many custom
types.

renderclj

(render x request)

Render x into a form suitable for the given request map.

Render `x` into a form suitable for the given request map.
sourceraw docstring

sendclj

(send x request respond raise)

Send x as a Ring response. Checks to see if x satisfies Sendable, and if not, falls back to Renderable.

Send `x` as a Ring response. Checks to see if `x` satisfies [[Sendable]],
and if not, falls back to [[Renderable]].
sourceraw docstring

Sendablecljprotocol

A protocol that tells Compojure how to handle the return value of asynchronous routes, should they require special attention.

A protocol that tells Compojure how to handle the return value of
asynchronous routes, should they require special attention.

send*clj

(send* x request respond raise)
sourceraw docstring

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

× close