Reitit also support for interceptors as an alternative to using middleware. Basic interceptor handling is implemented in reitit.interceptor
package. There is no interceptor executor shipped, but you can use libraries like Pedestal Interceptor or Sieppari to execute the chains.
[metosin/reitit-http "0.2.9"]
An module for http-routing using interceptors instead of middleware. Builds on top of the reitit-ring
module having all the same features.
The differences:
:middleware
, uses :interceptors
.reitit.http/http-router
requires an extra option :executor
of type reitit.interceptor/Executor
.reitit.http/routing-interceptor
.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close