forked from metosin/reitit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Default Interceptors | ||
|
||
```clj | ||
[metosin/reitit-interceptors "0.2.1"] | ||
``` | ||
|
||
Just like the [ring default middleware](../ring/default_middleware.md), but for interceptors. The default interceptors are: | ||
|
||
### 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters