mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user