actix-web v4.0.0-beta.9 Release Notes
Release Date: 2021-09-09 // over 2 years ago-
➕ Added
- Re-export actix-service
ServiceFactory
indev
module. [#2325]
🔄 Changed
- Compress middleware will return 406 Not Acceptable when no content encoding is acceptable to the client. [#2344]
- 🚚 Move
BaseHttpResponse
todev::Response
. [#2379] - ✅ Enable
TestRequest::param
to accept more than just static strings. [#2172] - 👍 Minimum supported Rust version (MSRV) is now 1.51.
🛠 Fixed
- 🛠 Fix quality parse error in Accept-Encoding header. [#2344]
- 🌐 Re-export correct type at
web::HttpResponse
. [#2379]
🌐 [#2172]: https://github.com/actix/actix-web/pull/2172 🌐 [#2325]: https://github.com/actix/actix-web/pull/2325 🌐 [#2344]: https://github.com/actix/actix-web/pull/2344 🌐 [#2379]: https://github.com/actix/actix-web/pull/2379
- Re-export actix-service
Previous changes from v4.0.0-beta.8
-
➕ Added
- ➕ Add
ServiceRequest::parts_mut
. [#2177] - ➕ Add extractors for
Uri
andMethod
. [#2263] - ➕ Add extractors for
ConnectionInfo
andPeerAddr
. [#2263] - ➕ Add
Route::service
for using hand-written services as handlers. [#2262]
🔄 Changed
- 🔄 Change compression algorithm features flags. [#2250]
- 🗄 Deprecate
App::data
andApp::data_factory
. [#2271] - Smarter extraction of
ConnectionInfo
parts. [#2282]
🛠 Fixed
- Scope and Resource middleware can access data items set on their own layer. [#2288]
🌐 [#2177]: https://github.com/actix/actix-web/pull/2177 🌐 [#2250]: https://github.com/actix/actix-web/pull/2250 🌐 [#2271]: https://github.com/actix/actix-web/pull/2271 🌐 [#2262]: https://github.com/actix/actix-web/pull/2262 🌐 [#2263]: https://github.com/actix/actix-web/pull/2263 🌐 [#2282]: https://github.com/actix/actix-web/pull/2282 🌐 [#2288]: https://github.com/actix/actix-web/pull/2288
- ➕ Add