reitit/doc/http/default_interceptors.md

27 lines
887 B
Markdown
Raw Normal View History

2018-09-07 21:05:55 +00:00
# Default Interceptors
```clj
2025-10-24 12:52:47 +00:00
[metosin/reitit-interceptors "0.9.2-rc1"]
2018-09-07 21:05:55 +00:00
```
2018-09-09 18:50:23 +00:00
Just like the [ring default middleware](../ring/default_middleware.md), but for interceptors.
2018-09-07 21:05:55 +00:00
### Parameters handling
* `reitit.http.interceptors.parameters/parameters-interceptor`
2018-09-07 21:05:55 +00:00
### 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.