mirror of https://github.com/fafhrd91/actix-web
				
				
				
			
		
			
				
	
	
	
		
			16 KiB
		
	
	
	
	
	
			
		
		
	
	
			16 KiB
		
	
	
	
	
	
Changes
Unreleased
3.8.1
- Fix a bug where GO_AWAYerrors did not stop connections from returning to the pool.
3.8.0
- Add hickory-dnscrate feature (off-by-default).
- The trust-dnscrate feature now delegates DNS resolution tohickory-dns.
3.7.0
- Update brotlidependency to8.
3.6.0
- Prevent panics on connection pool drop when Tokio runtime is shutdown early.
- Do not send Hostheader on HTTP/2 requests, as it is not required, and some web servers may reject it.
- Update brotlidependency to7.
- Minimum supported Rust version (MSRV) is now 1.75.
3.5.1
- Fix WebSocket Hostrequest header value when using a non-default port.
3.5.0
- Add rustls-0_23,rustls-0_23-webpki-roots, andrustls-0_23-native-rootscrate features.
- Add awc::Connector::rustls_0_23()constructor.
- Fix rustls-0_22-native-rootsroot store lookup.
- Update brotlidependency to6.
- Minimum supported Rust version (MSRV) is now 1.72.
3.4.0
- Add rustls-0_22-webpki-rootsandrustls-0_22-native-rootscrate feature.
- Add awc::Connector::rustls_0_22()method.
3.3.0
- Update trust-dns-resolverdependency to0.23.
- Updated zstddependency to0.13.
3.2.0
- Add awc::Connector::rustls_021()method for Rustls v0.21 support behind newrustls-0_21crate feature.
- Add rustls-0_20crate feature, which the existingrustlsfeature now aliases.
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive timedependency.
3.1.1
Changed
- client::Connectis now public to allow tunneling connection with- client::Connector.
3.1.0
Changed
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive timedependency.
3.0.1
Changed
- Minimum supported Rust version (MSRV) is now 1.57 due to transitive timedependency.
Fixed
- Fixed handling of redirection requests that begin with //. #2840
3.0.0
Dependencies
- Updated actix-*to Tokio v1-based versions. #1813
- Updated bytesto1.0. #1813
- Updated cookieto0.16. #2555
- Updated randto0.8.
- Updated rustlsto0.20. #2414
- Updated tokioto1.
Added
- trust-dnscrate feature to enable- trust-dns-resolveras client DNS resolver; disabled by default. #1969
- cookiescrate feature; enabled by default. [#2619]
- compress-brotlicrate feature; enabled by default. #2250
- compress-gzipcrate feature; enabled by default. #2250
- compress-zstdcrate feature; enabled by default. #2250
- client::Connector::handshake_timeout()for customizing TLS connection handshake timeout. #2081
- client::ConnectorServiceas- client::Connector::finishmethod's return type #2081
- client::ConnectionIotrait alias #2081
- Client::headers()to get default mut reference of- HeaderMapof client object. #2114
- ClientResponse::timeout()for set the timeout of collecting response body. #1931
- ClientBuilder::local_address()for binding to a local IP address for this client. #2024
- ClientRequest::insert_header()method which allows using typed and untyped headers. #1869
- ClientRequest::append_header()method which allows using typed and untyped headers. #1869
- ClientBuilder::add_default_header()(and deprecate- ClientBuilder::header()). #2510
Changed
- client::Connectortype now only has one generic type for- actix_service::Service. #2063
- client::error::ConnectErrorResolver variant contains- Box<dyn std::error::Error>type. #1905
- client::ConnectorConfigdefault timeout changed to 5 seconds. #1905
- ConnectorServicetype is renamed to- BoxConnectorService. #2081
- Fix http/https encoding when enabling compressfeature. #2116
- Rename TestResponse::{header => append_header, set => insert_header}. These methods now take aTryIntoHeaderPair. #2094
- ClientBuilder::connector()method now takes- Connector<T, U>type. #2008
- Basic auth now accepts blank passwords as an empty string instead of an Option. #2050
- Relax default timeout for Connectorto 5 seconds (up from 1 second). #1905
- *::send_json()and- *::send_form()methods now receive- impl Serialize. #2553
- FrozenClientRequest::extra_header()now uses receives an- impl TryIntoHeaderPair. #2553
- Rename Connector::{ssl => openssl}(). #2503
- ClientRequest::send_bodynow takes an- impl MessageBody. #2546
- Rename MessageBody => ResponseBodyto avoid conflicts withMessageBodytrait. #2546
- Minimum supported Rust version (MSRV) is now 1.54.
Fixed
- Send headers along with redirected requests. #2310
- Improve Clientinstantiation efficiency when usingopensslby only building connectors once. #2503
- Remove unnecessary Unpinbounds on*::send_stream. #2553
- impl Futurefor- ResponseBodyno longer requires the body type be- Unpin. #2546
- impl Futurefor- JsonBodyno longer requires the body type be- Unpin. #2546
- impl Streamfor- ClientResponseno longer requires the body type be- Unpin. #2546
Removed
- compresscrate feature. #2250
- ClientRequest::set; use- ClientRequest::insert_header. #1869
- ClientRequest::set_header; use- ClientRequest::insert_header. #1869
- ClientRequest::set_header_if_none; use- ClientRequest::insert_header_if_none. #1869
- ClientRequest::header; use- ClientRequest::append_header. #1869
- Deprecated methods on ClientRequest:if_true,if_some. #2148
- ClientBuilder::defaultfunction #2008
Security
- cookieupgrade addresses- RUSTSEC-2020-0071.
3.0.0 Pre-Releases
3.0.0-beta.21
- No significant changes since 3.0.0-beta.20.
3.0.0-beta.20
- No significant changes since 3.0.0-beta.19.
3.0.0-beta.19
- No significant changes since 3.0.0-beta.18.
3.0.0-beta.18
- Minimum supported Rust version (MSRV) is now 1.54.
3.0.0-beta.17
Changed
- Update cookiedependency (re-exported) to0.16. #2555
Security
- cookieupgrade addresses- RUSTSEC-2020-0071.
3.0.0-beta.16
- *::send_jsonand- *::send_formmethods now receive- impl Serialize. #2553
- FrozenClientRequest::extra_headernow uses receives an- impl TryIntoHeaderPair. #2553
- Remove unnecessary Unpinbounds on*::send_stream. #2553
3.0.0-beta.15
- Rename Connector::{ssl => openssl}. #2503
- Improve Clientinstantiation efficiency when usingopensslby only building connectors once. #2503
- ClientRequest::send_bodynow takes an- impl MessageBody. #2546
- Rename MessageBody => ResponseBodyto avoid conflicts withMessageBodytrait. #2546
- impl Futurefor- ResponseBodyno longer requires the body type be- Unpin. #2546
- impl Futurefor- JsonBodyno longer requires the body type be- Unpin. #2546
- impl Streamfor- ClientResponseno longer requires the body type be- Unpin. #2546
3.0.0-beta.14
- Add ClientBuilder::add_default_headerand deprecateClientBuilder::header. #2510
3.0.0-beta.13
- No significant changes since 3.0.0-beta.12.
3.0.0-beta.12
- Update actix-tlsto3.0.0-rc.1. #2474
3.0.0-beta.11
- No significant changes from 3.0.0-beta.10.
3.0.0-beta.10
- No significant changes from 3.0.0-beta.9.
3.0.0-beta.9
- Updated rustls to v0.20. #2414
3.0.0-beta.8
Changed
- Send headers within the redirect requests. #2310
3.0.0-beta.7
Changed
- Change compression algorithm features flags. #2250
3.0.0-beta.6
- No significant changes since 3.0.0-beta.5.
3.0.0-beta.5
Removed
- Deprecated methods on ClientRequest:if_true,if_some. #2148
3.0.0-beta.4
Added
- Add Client::headersto get default mut reference ofHeaderMapof client object. #2114
Changed
- ConnectorServicetype is renamed to- BoxConnectorService. #2081
- Fix http/https encoding when enabling compressfeature. #2116
- Rename TestResponse::headertoappend_header,settoinsert_header.TestResponseheader methods now takeTryIntoHeaderPairtuples. #2094
3.0.0-beta.3
Added
- ClientResponse::timeoutfor set the timeout of collecting response body. #1931
- ClientBuilder::local_addressfor bind to a local ip address for this client. #2024
Changed
- Feature cookiesis now optional and enabled by default. #1981
- ClientBuilder::connectormethod would take- actix_http::client::Connector<T, U>type. #2008
- Basic auth password now takes blank passwords as an empty string instead of Option. #2050
Removed
- ClientBuilder::defaultfunction #2008
3.0.0-beta.2
Added
- ClientRequest::insert_headermethod which allows using typed headers. #1869
- ClientRequest::append_headermethod which allows using typed headers. #1869
- trust-dnsoptional feature to enable- trust-dns-resolveras client dns resolver. #1969
Changed
- Relax default timeout for Connectorto 5 seconds(original 1 second). #1905
Removed
- ClientRequest::set; use- ClientRequest::insert_header. #1869
- ClientRequest::set_header; use- ClientRequest::insert_header. #1869
- ClientRequest::set_header_if_none; use- ClientRequest::insert_header_if_none. #1869
- ClientRequest::header; use- ClientRequest::append_header. #1869
3.0.0-beta.1
Changed
2.0.3
Fixed
- Ensure actix-httpdependency uses sameserde_urlencoded.
2.0.2
Changed
- Upgrade serde_urlencodedto0.7. #1773
2.0.1
Changed
Fixed
- Use Accept-Encoding: identityinstead ofAccept-Encoding: brwhen no compression feature is enabled #1737
2.0.0
Changed
- Client::buildwas renamed to- Client::builder.
2.0.0-beta.4
Changed
- Update actix-codec & actix-tls dependencies.
2.0.0-beta.3
Changed
- Update rustlsto 0.18
2.0.0-beta.2
Changed
- Update actix-httpdependency to 2.0.0-beta.2
2.0.0-beta.1
Changed
- Update actix-httpdependency to 2.0.0-beta.1
2.0.0-alpha.2
Changed
- Implement std::error::Errorfor our custom errors #1422
- Bump minimum supported Rust version to 1.40
- Update base64dependency to 0.12
2.0.0-alpha.1
- Update actix-httpdependency to 2.0.0-alpha.2
- Update rustlsdependency to 0.17
- ClientBuilder accepts initial_window_size and initial_connection_window_size HTTP2 configuration
- ClientBuilder allowing to set max_http_version to limit HTTP version to be used
1.0.1
- Fix compilation with default features off
1.0.0
- Release
1.0.0-alpha.3
- Migrate to std::future
0.2.8
- Add support for setting query from Serialize type for client request.
0.2.7
Added
- Remaining getter methods for ClientRequest's privateheadfield #1101
0.2.6
Added
- Export frozen request related types.
0.2.5
Added
- Add FrozenClientRequestto support retries for sending HTTP requests
Changed
- Ensure that the Hostheader is set when initiating a WebSocket client connection.
0.2.4
Changed
- 
Update percent-encoding to "2.1" 
- 
Update serde_urlencoded to "0.6.1" 
0.2.3
Added
- Add rustlssupport
0.2.2
Changed
- 
Always append a colon after username in basic auth 
- 
Upgrade randdependency version to 0.7
0.2.1
Added
- Add license files
0.2.0
Added
- Allow to send headers in Camel-Caseform.
Changed
- Upgrade actix-http dependency.
0.1.1
Added
- Allow to specify server address for http and ws requests.
Changed
- ClientRequest::if_true()and- ClientRequest::if_some()use instance instead of ref
0.1.0
- No changes
0.1.0-alpha.6
Changed
- Do not set default headers for websocket request
0.1.0-alpha.5
Changed
- Do not set any default headers
Added
- Add Debug impl for BoxedSocket
0.1.0-alpha.4
Changed
- Update actix-http dependency
0.1.0-alpha.3
Added
- 
Export MessageBodytype
- 
ClientResponse::json()- Loads and parseapplication/jsonencoded body
Changed
- 
ClientRequest::json()accepts reference instead of object.
- 
ClientResponse::body()does not consume response object.
- 
Renamed ClientRequest::close_connection()toClientRequest::force_close()
0.1.0-alpha.2
Added
- 
Per request and session wide request timeout. 
- 
Session wide headers. 
- 
Session wide basic and bearer auth. 
- 
Re-export actix_http::client::Connector.
Changed
- 
Allow to override request's uri 
- 
Export wssub-module with websockets related types
0.1.0-alpha.1
- Initial impl