httpx v0.12.0 Release Notes

Release Date: 2020-03-05 // about 4 years ago
  • ๐Ÿš€ The 0.12 release tightens up the API expectations for httpx by switching to private module names to enforce better clarity around public API.

    ๐Ÿ“ฆ All imports of httpx should import from the top-level package only, such as from httpx import Request, rather than importing from privately namespaced modules such as from httpx._models import Request.

    โž• Added

    • Support making response body available to auth classes with .requires_response_body. (Pull #803)
    • ๐Ÿ‘ท Export NetworkError exception. (Pull #814)
    • โž• Add support for NO_PROXY environment variable. (Pull #835)

    ๐Ÿ”„ Changed

    • Switched to private module names. (Pull #785)
    • โฌ‡๏ธ Drop redirect looping detection and the RedirectLoop exception, instead using TooManyRedirects. (Pull #819)
    • โฌ‡๏ธ Drop backend=... parameter on AsyncClient, in favour of always autodetecting trio/asyncio. (Pull #791)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘Œ Support basic auth credentials in proxy URLs. (Pull #780)
    • ๐Ÿ›  Fix httpx.Proxy(url, mode="FORWARD_ONLY") configuration. (Pull #788)
    • Fallback to setting headers as UTF-8 if no encoding is specified. (Pull #820)
    • Close proxy dispatches classes on client close. (Pull #826)
    • ๐Ÿ‘Œ Support custom cert parameters even if verify=False. (Pull #796)
    • ๐Ÿ‘ Don't support invalid dict-of-dicts form data in data=.... (Pull #811)