A protocol for generating Ring response maps
A protocol for generating Ring response maps
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.
(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.
(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]].
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* x request respond raise)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close