Liking cljdoc? Tell your friends :D

reitit.interceptor


*max-compile-depth*clj/s

source

chainclj/s

(chain interceptors handler data)
(chain interceptors handler data opts)

Creates a Interceptor chain out of sequence of IntoInterceptor and optionally a handler. Optionally takes route data and (Router) opts.

Creates a Interceptor chain out of sequence of IntoInterceptor
and optionally a handler. Optionally takes route data and (Router) opts.
sourceraw docstring

compile-resultclj/s

(compile-result route opts)
(compile-result [path {:keys [interceptors handler] :as data}] opts scope)
source

Endpointcljs

source

Interceptorcljs

source

interceptor-handlerclj/s

(interceptor-handler router)
source

IntoInterceptorclj/s≠protocol

into-interceptorclj/s

(into-interceptor this data opts)
source

routerclj/s

(router data)
(router data opts)

Creates a reitit.core/Router from raw route data and optionally an options map with support for Interceptors. See docs for details.

Example:

(router ["/api" {:interceptors [format-body oauth2]} ["/users" {:interceptors [delete] :handler get-user}]])

Options:

keydescription
:reitit.interceptor/transformFunction of [Interceptor] => [Interceptor] to transform the expanded Interceptors (default: identity).

See router options from reitit.core/router.

Creates a [[reitit.core/Router]] from raw route data and optionally an options map with
support for Interceptors. See [docs](https://metosin.github.io/reitit/) for details.

Example:

  (router
    ["/api" {:interceptors [format-body oauth2]}
      ["/users" {:interceptors [delete]
                   :handler get-user}]])

Options:

| key                             | description |
| --------------------------------|-------------|
| `:reitit.interceptor/transform` | Function of [Interceptor] => [Interceptor] to transform the expanded Interceptors (default: identity).

See router options from [[reitit.core/router]].
sourceraw docstring

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

× close