Liking cljdoc? Tell your friends :D

cljdoc.server.pedestal-util

Based on this excellent guide: http://pedestal.io/guides/hello-world-content-types
raw docstring

accepted-typeclj

(accepted-type context)
source

coerce-bodyclj

source

coerce-toclj

(coerce-to response content-type)
source

htmlclj

(html render-fn)

Return an interceptor that will pass the context to the provided function render-fn and return it's result as a text/html response.

Return an interceptor that will pass the context to the provided
function `render-fn` and return it's result as a text/html response.
sourceraw docstring

negotiate-contentclj

source

okclj

(ok ctx body)

Return the context ctx with response body and status 200

Return the context `ctx` with response `body` and status 200
sourceraw docstring

ok-htmlclj

(ok-html ctx body)

Return the context ctx with response body, status 200 and the Content-Type header set to text/html

Return the context `ctx` with response `body`, status 200
and the Content-Type header set to `text/html`
sourceraw docstring

ok-xmlclj

(ok-xml ctx body)

Return the context ctx with response body, status 200 and the Content-Type header set to text/xml

Return the context `ctx` with response `body`, status 200
and the Content-Type header set to `text/xml`
sourceraw docstring

transform-contentclj

(transform-content body content-type)
source

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

× close