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
serde@1.0
. 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.
Thanks
Thanks to these contributors who helped get this stuff into this release: