mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
26 lines
887 B
Markdown
26 lines
887 B
Markdown
# Default Interceptors
|
|
|
|
```clj
|
|
[metosin/reitit-interceptors "0.9.2-rc1"]
|
|
```
|
|
|
|
Just like the [ring default middleware](../ring/default_middleware.md), but for interceptors.
|
|
|
|
### Parameters handling
|
|
* `reitit.http.interceptors.parameters/parameters-interceptor`
|
|
|
|
### Exception handling
|
|
* `reitit.http.interceptors.exception/exception-interceptor`
|
|
|
|
### Content Negotiation
|
|
* `reitit.http.interceptors.muuntaja/format-interceptor`
|
|
* `reitit.http.interceptors.muuntaja/format-negotiate-interceptor`
|
|
* `reitit.http.interceptors.muuntaja/format-request-interceptor`
|
|
* `reitit.http.interceptors.muuntaja/format-response-interceptor`
|
|
|
|
### Multipart request handling
|
|
* `reitit.http.interceptors.multipart/multipart-interceptor`
|
|
|
|
## Example app
|
|
|
|
See an example app with the default interceptors in action: https://github.com/metosin/reitit/blob/master/examples/http-swagger/src/example/server.clj.
|