reqwest v0.6.0 Release Notes
-
🔋 Features
- ⬆️ Upgraded to serde
1.0
- ➕ Added a
url
method toError
, which returns a possible associatedUrl
that occurred with this error. - Added
req.basic_auth(user, optional_pass)
method to ease usingBasic
authentication.
💥 Breaking Changes
- ⬆️ The publicly exposed peer dependency serde was upgraded. It is now
[email protected]
. Mismatched version will give a compiler error that a serde trait is not implemented. Error
is no longer anenum
, but an opaque struct. Details about it can be checked withstd::error::Error::cause()
, and methods onreqwest::Error
includeis_http()
,is_serialization()
, andis_redirect()
.- 👀
RedirectPolicy::custom
receives different arguments, and returns different values. See the docs for an example.
- ⬆️ Upgraded to serde