Liking cljdoc? Tell your friends :D

reitit.http


coerce-handlerclj/s

(coerce-handler [path data] {:keys [expand] :as opts})

compile-resultclj/s

(compile-result [path data] opts)

Endpointcljs


get-matchclj/s

(get-match request)

get-routerclj/s

(get-router handler)

ring-handlerclj/s

(ring-handler router opts)
(ring-handler router default-handler {:keys [executor interceptors]})

Creates a ring-handler out of a http-router, optional default ring-handler and options map, with the following keys:

keydescription
:executorreitit.interceptor.Executor for the interceptor chain
:interceptorsOptional sequence of interceptors that are always run before any other interceptors, even for the default handler
Creates a ring-handler out of a http-router, optional default ring-handler
and options map, with the following keys:

| key             | description |
| ----------------|-------------|
| `:executor`     | `reitit.interceptor.Executor` for the interceptor chain
| `:interceptors` | Optional sequence of interceptors that are always run before any other interceptors, even for the default handler
raw docstring

routerclj/s

(router data)
(router data opts)

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

Example:

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

See router options from [[reitit.core/router]] and [[reitit.middleware/router]].

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

Example:

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

See router options from [[reitit.core/router]] and [[reitit.middleware/router]].
raw docstring

routing-interceptorclj/s

(routing-interceptor router default-handler {:keys [interceptors executor]})

A Pedestal-style routing interceptor that enqueus the interceptors into context.

A Pedestal-style routing interceptor that enqueus the interceptors into context.
raw docstring

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

× close