(compile-result [path data]
                {:keys [:reitit.http/default-options-endpoint expand] :as opts})(ring-handler router opts)(ring-handler router
              default-handler
              {:keys [executor interceptors inject-match? inject-router?]
               :or {inject-match? true inject-router? true}})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.Executorfor the interceptor chain | 
| :interceptors | Optional sequence of interceptors that are always run before any other interceptors, even for the default handler | 
| :inject-match? | Boolean to inject matchinto request under:reitit.core/matchkey (default true) | 
| :inject-router? | Boolean to inject routerinto request under:reitit.core/routerkey (default true) | 
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 | `:inject-match?` | Boolean to inject `match` into request under `:reitit.core/match` key (default true) | `:inject-router?` | Boolean to inject `router` into request under `:reitit.core/router` key (default true)
(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 documentation on [[reitit.core/router]] for available options. In addition, the following options are available:
| key | description | 
|---|---|
| :reitit.interceptor/transform | Function or vector of functions of type [Interceptor] => [Interceptor]to transform the expanded Interceptors (default: identity) | 
| :reitit.interceptor/registry | Map of keyword => IntoInterceptorto replace keyword references into Interceptors | 
| :reitit.http/default-options-endpoint | Default endpoint for :optionsmethod in endpoints (default: reitit.ring/default-options-endpoint) | 
Example:
(router
  ["/api" {:interceptors [format-i oauth2-i]}
    ["/users" {:get get-user
                 :post update-user
                 :delete {:interceptors [delete-i]
                         :handler delete-user}}]])
Creates a [[reitit.core/Router]] from raw route data and optionally an options map with
support for http-methods and Interceptors. See documentation on [[reitit.core/router]]
for available options. In addition, the following options are available:
| key                                     | description
| ----------------------------------------|-------------
| `:reitit.interceptor/transform`         | Function or vector of functions of type `[Interceptor] => [Interceptor]` to transform the expanded Interceptors (default: identity)
| `:reitit.interceptor/registry`          | Map of `keyword => IntoInterceptor` to replace keyword references into Interceptors
| `:reitit.http/default-options-endpoint` | Default endpoint for `:options` method in endpoints (default: reitit.ring/default-options-endpoint)
Example:
    (router
      ["/api" {:interceptors [format-i oauth2-i]}
        ["/users" {:get get-user
                     :post update-user
                     :delete {:interceptors [delete-i]
                             :handler delete-user}}]])(routing-interceptor router
                     default-handler
                     {:keys [interceptors executor inject-match? inject-router?]
                      :or {inject-match? true inject-router? true}})Creates a Pedestal-style routing interceptor that enqueues the interceptors into context. Takes http-router, default ring-handler and and options map, with the following keys:
| key | description | 
|---|---|
| :executor | reitit.interceptor.Executorfor the interceptor chain | 
| :interceptors | Optional sequence of interceptors that are always run before any other interceptors, even for the default handler | 
| :inject-match? | Boolean to inject matchinto request under:reitit.core/matchkey (default true) | 
| :inject-router? | Boolean to inject routerinto request under:reitit.core/routerkey (default true) | 
Creates a Pedestal-style routing interceptor that enqueues the interceptors into context. Takes http-router, default ring-handler and 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 | `:inject-match?` | Boolean to inject `match` into request under `:reitit.core/match` key (default true) | `:inject-router?` | Boolean to inject `router` into request under `:reitit.core/router` key (default true)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |