Make the B type parameter in Handler default to axum::body::Body (#527)

* Swap type params in `Handler`

* Default `B` type param in `Handler`
This commit is contained in:
David Pedersen
2021-11-16 23:00:39 +01:00
committed by GitHub
parent 1dc49ae039
commit 939995e80e
4 changed files with 29 additions and 25 deletions
+4
View File
@@ -20,9 +20,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
`routing::{get, get_service, ..., MethodRouter}`.
- **breaking:** `HandleErrorExt` has been removed in favor of
`MethodRouter::handle_error`.
- **breaking:** The `Handler<B, T>` trait is now defined as `Handler<T, B =
Body>`. That is the type parameters have been swapped and `B` defaults to
`axum::body::Body` ([#527])
- Update WebSockets to use tokio-tungstenite 0.16 ([#525])
[#525]: https://github.com/tokio-rs/axum/pull/525
[#527]: https://github.com/tokio-rs/axum/pull/527
# 0.3.3 (13. November, 2021)