Features
- Upgraded to serde
1.0 - Added a
urlmethod toError, which returns a possible associatedUrlthat occurred with this error. - Added
req.basic_auth(user, optional_pass)method to ease usingBasicauthentication.
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. Erroris no longer anenum, but an opaque struct. Details about it can be checked withstd::error::Error::cause(), and methods onreqwest::Errorincludeis_http(),is_serialization(), andis_redirect().RedirectPolicy::customreceives 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: