Releases: actix/actix-web
Releases · actix/actix-web
actix-web-codegen: v4.0.1
- Fix support for guard paths in route handler macros. #2771
- Minimum supported Rust version (MSRV) is now 1.56 due to transitive
hashbrown
dependency.
actix-http: v3.0.4
Fix
- Document on docs.rs with
ws
feature enabled.
actix-http: v3.0.3
Fixed
- Allow spaces between header name and colon when parsing responses. #2684
awc: v3.0.0
Dependencies
- Updated
actix-*
to Tokio v1-based versions. #1813 - Updated
bytes
to1.0
. #1813 - Updated
cookie
to0.16
. #2555 - Updated
rand
to0.8
. - Updated
rustls
to0.20
. #2414 - Updated
tokio
to1
.
Added
trust-dns
crate feature to enabletrust-dns-resolver
as client DNS resolver; disabled by default. #1969cookies
crate feature; enabled by default. [#2619]compress-brotli
crate feature; enabled by default. #2250compress-gzip
crate feature; enabled by default. #2250compress-zstd
crate feature; enabled by default. #2250client::Connector::handshake_timeout()
for customizing TLS connection handshake timeout. #2081client::ConnectorService
asclient::Connector::finish
method's return type #2081client::ConnectionIo
trait alias #2081Client::headers()
to get default mut reference ofHeaderMap
of client object. #2114ClientResponse::timeout()
for set the timeout of collecting response body. #1931ClientBuilder::local_address()
for binding to a local IP address for this client. #2024ClientRequest::insert_header()
method which allows using typed and untyped headers. #1869ClientRequest::append_header()
method which allows using typed and untyped headers. #1869ClientBuilder::add_default_header()
(and deprecateClientBuilder::header()
). #2510
Changed
client::Connector
type now only has one generic type foractix_service::Service
. #2063client::error::ConnectError
Resolver variant containsBox<dyn std::error::Error>
type. #1905client::ConnectorConfig
default timeout changed to 5 seconds. #1905ConnectorService
type is renamed toBoxConnectorService
. #2081- Fix http/https encoding when enabling
compress
feature. #2116 - Rename
TestResponse::{header => append_header, set => insert_header}
. These methods now take aTryIntoHeaderPair
. #2094 ClientBuilder::connector()
method now takesConnector<T, U>
type. #2008- Basic auth now accepts blank passwords as an empty string instead of an
Option
. #2050 - Relax default timeout for
Connector
to 5 seconds (up from 1 second). #1905 *::send_json()
and*::send_form()
methods now receiveimpl Serialize
. #2553FrozenClientRequest::extra_header()
now uses receives animpl TryIntoHeaderPair
. #2553- Rename
Connector::{ssl => openssl}()
. #2503 ClientRequest::send_body
now takes animpl MessageBody
. #2546- Rename
MessageBody => ResponseBody
to avoid conflicts withMessageBody
trait. #2546 - Minimum supported Rust version (MSRV) is now 1.54.
Fixed
- Send headers along with redirected requests. #2310
- Improve
Client
instantiation efficiency when usingopenssl
by only building connectors once. #2503 - Remove unnecessary
Unpin
bounds on*::send_stream
. #2553 impl Future
forResponseBody
no longer requires the body type beUnpin
. #2546impl Future
forJsonBody
no longer requires the body type beUnpin
. #2546impl Stream
forClientResponse
no longer requires the body type beUnpin
. #2546
Removed
compress
crate feature. #2250ClientRequest::set
; useClientRequest::insert_header
. #1869ClientRequest::set_header
; useClientRequest::insert_header
. #1869ClientRequest::set_header_if_none
; useClientRequest::insert_header_if_none
. #1869ClientRequest::header
; useClientRequest::append_header
. #1869- Deprecated methods on
ClientRequest
:if_true
,if_some
. #2148 ClientBuilder::default
function #2008
Security
cookie
upgrade addressesRUSTSEC-2020-0071
.
actix-http: v3.0.2
Fixed
- Fix encoding camel-case header names with more than one hyphen. #2683
actix-http: v3.0.1
- Fix panic in H1 dispatcher when pipelining is used with keep-alive. #2678
actix-web-actors: v4.1.0
- Add support for
actix
version0.13
. #2675
actix-web: v4.0.1
Fixed
- Use stable version in readme example.
actix-web: v4.0.0
See in-tree changelog for full list of changes since v3.x.
Changed
- Rename
test::{simple_service => status_service}
. #2659
actix-multipart: v0.4.0
- No significant changes since
0.4.0-beta.13
.