mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Update CHANGELOG for middleware chain inspection
This commit is contained in:
parent
b8c2bc18cf
commit
8c9a7a42cb
2 changed files with 9 additions and 3 deletions
|
|
@ -26,6 +26,12 @@ We use [Break Versioning][breakver]. The version numbers follow a `<major>.<mino
|
|||
|
||||
* Automatically coerce Sieppari-style 1-arity `:error` handlers into Pedestal-style 2-arity `:error` handlers. Thanks to [Mathieu MARCHANDISE](https://github.com/vielmath).
|
||||
|
||||
### `reitit-middleware`
|
||||
|
||||
* `reitit.ring.middleware.dev/print-request-diffs` prints also response diffs.
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/567532/56895987-3e54ea80-6a93-11e9-80ee-9ba6f8896db6.png">
|
||||
|
||||
## 0.3.1 (2019-03-18)
|
||||
|
||||
* Recompiled with Java8 as target, fixes [#241](https://github.com/metosin/reitit/issues/241).
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Any Ring middleware can be used with `reitit-ring`, but using data-driven middle
|
|||
* [Exception Handling](#exception-handling)
|
||||
* [Content Negotiation](#content-negotiation)
|
||||
* [Multipart Request Handling](#multipart-request-handling)
|
||||
* [Inspecting Requests](#inspecting-requests)
|
||||
* [Inspecting Middleware Chain](#inspecting-middleware-chain)
|
||||
|
||||
## Parameters Handling
|
||||
|
||||
|
|
@ -226,9 +226,9 @@ Expected route data:
|
|||
* `multipart/multipart-middleware` a preconfigured middleware for multipart handling
|
||||
* `multipart/create-multipart-middleware` to generate with custom configuration
|
||||
|
||||
## Inspecting Requests
|
||||
## Inspecting Middleware Chain
|
||||
|
||||
`reitit.ring.middleware.dev/print-request-diffs` is a [middleware chain transforming function](transforming_middleware_chain.md). It prints a request diff between each middleware. To use it, add the following router option:
|
||||
`reitit.ring.middleware.dev/print-request-diffs` is a [middleware chain transforming function](transforming_middleware_chain.md). It prints a request and response diff between each middleware. To use it, add the following router option:
|
||||
|
||||
```clj
|
||||
:reitit.middleware/transform reitit.ring.middleware.dev/print-request-diffs
|
||||
|
|
|
|||
Loading…
Reference in a new issue