@@ -7,26 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88# Unreleased
99
10+ # 0.8.0
11+
12+ ## rc.1
13+
14+ * Note: there are further relevant changes in [ axum-core's changelog] [ core-changelog ] *
15+
16+ - ** breaking:** Move ` Host ` extractor to ` axum-extra ` ([ #2956 ] )
17+ - ** breaking:** Remove ` WebSocket::close ` .
18+ Users should explicitly send close messages themselves. ([ #2974 ] )
19+ - ** breaking:** Make ` serve ` generic over the listener and IO types ([ #2941 ] )
20+ - ** breaking:** Remove ` Serve::tcp_nodelay ` and ` WithGracefulShutdown::tcp_nodelay ` .
21+ See ` serve::ListenerExt ` for an API that let you set arbitrary TCP stream properties. ([ #2941 ] )
22+ - ** breaking:** ` Option<Path<T>> ` and ` Option<Query<T>> ` no longer swallow all error conditions,
23+ instead rejecting the request in many cases; see their documentation for details ([ #2475 ] )
1024- ** fixed:** Skip SSE incompatible chars of ` serde_json::RawValue ` in ` Event::json_data ` ([ #2992 ] )
1125- ** fixed:** Don't panic when array type is used for path segment ([ #3039 ] )
12- - ** breaking:** Move ` Host ` extractor to ` axum-extra ` ([ #2956 ] )
26+ - ** fixed:** Avoid setting ` content-length ` before middleware.
27+ This allows middleware to add bodies to requests without needing to manually set ` content-length ` ([ #2897 ] )
1328- ** added:** Add ` method_not_allowed_fallback ` to set a fallback when a path matches but there is no handler for the given HTTP method ([ #2903 ] )
1429- ** added:** Add ` NoContent ` as a self-described shortcut for ` StatusCode::NO_CONTENT ` ([ #2978 ] )
1530- ** added:** Add support for WebSockets over HTTP/2.
1631 They can be enabled by changing ` get(ws_endpoint) ` handlers to ` any(ws_endpoint) ` ([ #2894 ] )
1732- ** added:** Add ` MethodFilter::CONNECT ` , ` routing::connect[_service] `
1833 and ` MethodRouter::connect[_service] ` ([ #2961 ] )
19- - ** fixed:** Avoid setting ` content-length ` before middleware.
20- This allows middleware to add bodies to requests without needing to manually set ` content-length ` ([ #2897 ] )
21- - ** breaking:** Remove ` WebSocket::close ` .
22- Users should explicitly send close messages themselves. ([ #2974 ] )
23- - ** breaking:** ` Option<Path<T>> ` and ` Option<Query<T>> ` no longer swallow all error conditions,
24- instead rejecting the request in many cases; see their documentation for details ([ #2475 ] )
2534- ** added:** Extend ` FailedToDeserializePathParams::kind ` enum with (` ErrorKind::DeserializeError ` )
2635 This new variant captures both ` key ` , ` value ` , and ` message ` from named path parameters parse errors,
2736 instead of only deserialization error message in ` ErrorKind::Message ` . ([ #2720 ] )
28- - ** breaking:** Make ` serve ` generic over the listener and IO types ([ #2941 ] )
2937
38+ [ core-changelog ] : ../axum-core/CHANGELOG.md
3039[ #2475 ] : https://github.com/tokio-rs/axum/pull/2475
3140[ #2897 ] : https://github.com/tokio-rs/axum/pull/2897
3241[ #2903 ] : https://github.com/tokio-rs/axum/pull/2903
@@ -40,8 +49,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4049[ #3039 ] : https://github.com/tokio-rs/axum/pull/3039
4150[ #2941 ] : https://github.com/tokio-rs/axum/pull/2941
4251
43- # 0.8.0
44-
4552## alpha.1
4653
4754- ** breaking:** Require ` Sync ` for all handlers and services added to ` Router `
0 commit comments