reqwest v0.7.0 Release Notes

  • ๐Ÿ”‹ Features

    • ๐Ÿ‘ Proxy support (#30)
    • Self-signed TLS certificates (#97)
    • Disabling TLS hostname validation ย  (#89)
    • A Request type that can be used instead of the RequestBuilder (#85)
    • Add Response::error_for_status() to easily convert 400 and 500 status responses into an Error (#98)
    • โฌ†๏ธ Upgrade hyper to 0.11
      • Synchronous Client remains.
      • Timeouts now affect DNS and socket connection.
      • Pool much better at evicting sockets when they die.
      • An unstable Cargo feature to enable reqwest::unstable::async.
    • ๐Ÿ“„ A huge docs improvement!

    ๐Ÿ›  Fixes

    • Publicly exports RedirectAction and RedirectAttempt
    • ๐Ÿ”€ Error::get_ref returns Error + Send + Sync

    ๐Ÿ’ฅ Breaking Changes

    • โฌ†๏ธ hyper has been upgraded to 0.11, so header, StatusCode, and Method have breaking changes.
    • mime has been ugpraded to 0.3, with a very different API.
    • ๐Ÿ”ง All configuration methods have been removed from the Client, and moved to the ClientBuilder.
    • ๐Ÿšš The HttpVersion type was completely removed.
    • Error::cause() now returns Error::get_ref().cause().
    • ๐Ÿ“œ All methods on Client that start a RequestBuilder now return a Result immediately, instead of delaying the URL parse error for later.
    • ๐Ÿ— The RequestBuilder methods all take &mut self, instead of moving the builder, and return &mut Self. (This shouldn't actually affect most people who are building a request in a single chain.)
    • Response::status() returns a StatusCode instead of &StatusCode.