CrossClj

0.1.2 docs

SourceDocs



RECENT
    VARS
    *max-compile-depth*
    ->Endpoint
    ->Interceptor
    chain
    compile-result
    ensure-handler!
    expand-and-transform
    interceptor-handler
    IntoInterceptor
    map->Endpoint
    map->Interceptor
    router

    « Index of all namespaces of this project

    (->Endpoint data interceptors)
    Positional factory function for class reitit.interceptor.Endpoint.
    
    (->Interceptor name enter leave error)
    Positional factory function for class reitit.interceptor.Interceptor.
    
    (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.
    (compile-result route opts)(compile-result [path {:keys [interceptors handler], :as data}] opts scope)
    Private
    (ensure-handler! path data scope)
    Private
    (expand-and-transform interceptors data {:keys [:reitit.interceptor/transform], :or {transform identity}, :as opts})
    (interceptor-handler router)
    protocol
    (into-interceptor this data opts)
    (map->Endpoint m__7585__auto__)
    Factory function for class reitit.interceptor.Endpoint, taking a map of keywords to field values.
    
    (map->Interceptor m__7585__auto__)
    Factory function for class reitit.interceptor.Interceptor, taking a map of keywords to field values.
    
    (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](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]].