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)

coerce-bodyclj


coerce-toclj

(coerce-to response content-type)

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.
raw docstring

negotiate-contentclj


okclj

(ok ctx body)

Return the context ctx with response body and status 200

Return the context `ctx` with response `body` and status 200
raw 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`
raw 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`
raw docstring

transform-contentclj

(transform-content body content-type)

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

× close