Liking cljdoc? Tell your friends :D

reitit-extras.core

Useful Reitit router middlewares and helpers.

Useful Reitit router middlewares and helpers.
raw docstring

create-resource-handler-cachedclj

(create-resource-handler-cached {:keys [cached? cache-control]
                                 :or {cached? false
                                      cache-control DEFAULT-CACHE-30D}
                                 :as opts})

Return resource handler with optional Cache-Control header.

Return resource handler with optional Cache-Control header.
sourceraw docstring

exception-middlewareclj

Common exception middleware to handle all errors.

Common exception middleware to handle all errors.
sourceraw docstring

render-htmlclj

(render-html content)

Render hiccup content as HTML response.

Note: hiccup/hiccup is not a direct dependency of this library.

Render hiccup content as HTML response.

Note: hiccup/hiccup is not a direct dependency of this library.
sourceraw docstring

string->16-byte-arrayclj

(string->16-byte-array s)
source

wrap-contextclj

(wrap-context handler context)

Add system dependencies of handler to request as a context key.

Add system dependencies of handler to request as a context key.
sourceraw docstring

wrap-reloadclj

(wrap-reload f)

Reload ring handler on every request. Useful in dev mode.

Reload ring handler on every request. Useful in dev mode.
sourceraw docstring

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

× close