reqwest v0.6.0 Release Notes

  • 🔋 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 [email protected]. 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.