This commit is contained in:
Tommi Reiman 2018-08-22 21:55:03 +03:00
parent 7b3aa5e631
commit c3c4f12e9a
2 changed files with 12 additions and 12 deletions

View file

@ -1,8 +1,6 @@
# Interceptors (WIP) # Interceptors (WIP)
Reitit also support for [Pedestal](pedestal.io)-style [interceptors](http://pedestal.io/reference/interceptors) as an alternative to Middleware. Basic interceptor handling is implemented in `reitit.interceptor` package. Reitit also support for [Pedestal](pedestal.io)-style [interceptors](http://pedestal.io/reference/interceptors) as an alternative to Middleware. Basic interceptor handling is implemented in `reitit.interceptor` package. There is no interceptor executor shipped, but you can use libraries like [Pedestal Interceptor](https://github.com/pedestal/pedestal/tree/master/interceptor) or [Sieppari](https://github.com/metosin/sieppari) to execute the chains.
There is no interceptor executor shipped, but you can use libraries like [Pedestal Interceptor](https://github.com/pedestal/pedestal/tree/master/interceptor) or [Sieppari](https://github.com/metosin/sieppari) to execute the chains.
## Reitit-http ## Reitit-http
@ -10,15 +8,11 @@ An alternative to `reitit-ring`, using interceptors instead of middleware. Curre
## Examples ## Examples
### Pedestal ### Standalone
**TODO** * [Sieppari](https://github.com/metosin/sieppari) for executing the chain
* [Manifold](https://github.com/ztellman/manifold) for async
### Sieppari * [data-specs](https://github.com/metosin/spec-tools/blob/master/README.md#data-specs) for coercion
* [Sieppari](https://github.com/metosin/sieppari)
* [Manifold](https://github.com/ztellman/manifold)
* [data-specs](https://github.com/metosin/spec-tools/blob/master/README.md#data-specs):
```clj ```clj
(require '[reitit.interceptor.sieppari :as sieppari]) (require '[reitit.interceptor.sieppari :as sieppari])
@ -77,3 +71,7 @@ An alternative to `reitit-ring`, using interceptors instead of middleware. Curre
(jetty/run-jetty #'app {:port 3000, :join? false, :async? true}) (jetty/run-jetty #'app {:port 3000, :join? false, :async? true})
``` ```
### Pedestal
**TODO**

View file

@ -1,6 +1,8 @@
# Performance # Performance
Reitit tries to be both great in features and be really, really fast. Originally the routing was ported from [Pedestal](http://pedestal.io/), but has been mostly rewritten to get even better performance. Reitit tries to be both great in features and be really, really fast. Originally the routing was ported from [Pedestal](http://pedestal.io/), but has been mostly rewritten.
![Opensensors perf test](images/opensensors.png)
### Rationale ### Rationale