mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
docs
This commit is contained in:
parent
7b3aa5e631
commit
c3c4f12e9a
2 changed files with 12 additions and 12 deletions
|
|
@ -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**
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Rationale
|
### Rationale
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue