httpx v0.19.0 Release Notes

Release Date: 2021-08-19 // about 2 months ago
  • โž• Added

    • โž• Add support for Client(allow_redirects=<bool>). (Pull #1790)
    • โž• Add automatic character set detection, when no charset is included in the response Content-Type header. (Pull #1791)

    ๐Ÿ”„ Changed

    • Event hooks are now also called for any additional redirect or auth requests/responses. (Pull #1806)
    • Strictly enforce that upload files must be opened in binary mode. (Pull #1736)
    • Strictly enforce that client instances can only be opened and closed once, and cannot be re-opened. (Pull #1800)
    • โฌ‡๏ธ Drop mode argument from httpx.Proxy(..., mode=...). (Pull #1795)

Previous changes from v0.18.2

  • โž• Added

    • ๐Ÿ‘Œ Support for Python 3.10. (Pull #1687)
    • Expose httpx.USE_CLIENT_DEFAULT, used as the default to auth and timeout parameters in request methods. (Pull #1634)
    • ๐Ÿ‘Œ Support HTTP/2 "prior knowledge", using httpx.Client(http1=False, http2=True). (Pull #1624)

    ๐Ÿ›  Fixed

    • โš  Clean up some cases where warnings were being issued. (Pull #1687)
    • Prefer Content-Length over Transfer-Encoding: chunked for content= cases. (Pull #1619)