requests v2.4.0 Release Notes

Release Date: 2014-08-29 // over 9 years ago
  • Behavioral Changes

    • Connection: keep-alive header is now sent automatically.

    👌 Improvements

    • ⏱ Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
    • Allow copying of PreparedRequests without headers/cookies.
    • ⚡️ Updated bundled urllib3 version.
    • 🔨 Refactored settings loading from environment -- new Session.merge_environment_settings.
    • Handle socket errors in iter_content.