cargo reqwest 0.6.0

latest releases: 0.12.3, 0.12.2, 0.12.1...
6 years ago

Features

  • Upgraded to serde 1.0
  • Added a url method to Error, which returns a possible associated Url that occurred with this error.
  • Added req.basic_auth(user, optional_pass) method to ease using Basic 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 an enum, but an opaque struct. Details about it can be checked with std::error::Error::cause(), and methods on reqwest::Error include is_http(), is_serialization(), and is_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:

Don't miss a new reqwest release

NewReleases is sending notifications on new releases.