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

csrf-tokenclj

(csrf-token)
source

exception-middlewareclj

Common exception middleware to handle all errors.

Common exception middleware to handle all errors.
sourceraw docstring

get-handler-ssrclj

(get-handler-ssr handler-config {:keys [options] :as context})
source

get-routeclj

(get-route router route-name)
(get-route router route-name {:keys [path query]})

Return the API route by its name, with optional path and query parameters.

Return the API route by its name, with optional path and query parameters.
sourceraw docstring

handler-ssrclj

(handler-ssr {:keys [routes default-handlers session-store]}
             {:keys [options] :as context})

Return main application handler for server-side rendering.

Return main application handler for server-side rendering.
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