reqwest v0.7.0 Release Notes
-
๐ Features
- ๐ Proxy support (#30)
- Self-signed TLS certificates (#97)
- Disabling TLS hostname validation ย (#89)
- A
Request
type that can be used instead of theRequestBuilder
(#85) - Add
Response::error_for_status()
to easily convert 400 and 500 status responses into anError
(#98) - โฌ๏ธ Upgrade hyper to 0.11
- Synchronous
Client
remains. - Timeouts now affect DNS and socket connection.
- Pool much better at evicting sockets when they die.
- An
unstable
Cargo feature to enablereqwest::unstable::async
.
- Synchronous
- ๐ A huge docs improvement!
๐ Fixes
- Publicly exports
RedirectAction
andRedirectAttempt
- ๐
Error::get_ref
returnsError + Send + Sync
๐ฅ Breaking Changes
- โฌ๏ธ hyper has been upgraded to 0.11, so
header
,StatusCode
, andMethod
have breaking changes. mime
has been ugpraded to 0.3, with a very different API.- ๐ง All configuration methods have been removed from the
Client
, and moved to theClientBuilder
. - ๐ The
HttpVersion
type was completely removed. Error::cause()
now returnsError::get_ref().cause()
.- ๐ All methods on
Client
that start aRequestBuilder
now return aResult
immediately, instead of delaying the URL parse error for later. - ๐ The
RequestBuilder
methods all take&mut self
, instead of moving the builder, and return&mut Self
. (This shouldn't actually affect most people who are building a request in a single chain.) Response::status()
returns aStatusCode
instead of&StatusCode
.