- Update to 0.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.
- Support HTTP/2 "prior knowledge", using
httpx.Client(http1=False, http2=True).
* Fixed
- Clean up some cases where warnings were being issued.
- Prefer Content-Length over Transfer-Encoding: chunked for
content= cases.
- Update to 0.18.1
* Changed
- Update brotli support to use the brotlicffi package
- Ensure that Request(..., stream=...) does not auto-generate
any headers on the request instance.
* Fixed
- Pass through timeout=... in top-level httpx.stream()
function.
- Map httpcore transport close exceptions to httpx exceptions.
- Add patch (submitted to upstream at gh#encode/httpx#1669) to add
a pytest marker so we can disable the tests that use the network
in %check:
* 0001-Add-a-network-pytest-mark-for-tests-that-use-the-network.patch
OBS-URL: https://build.opensuse.org/request/show/900750
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=3
- Enable tests (adding some missing dependencies and disabling
test_async_proxy_close and test_sync_proxy_close since they
access the network)
- Update to 0.18.0
* The 0.18.x release series formalises our low-level Transport
API, introducing the base classes httpx.BaseTransport and
httpx.AsyncBaseTransport.
See the "Writing custom transports" documentation and the
httpx.BaseTransport.handle_request() docstring for more
complete details on implementing custom transports.
Pull request #1522 includes a checklist of differences from
the previous httpcore transport API, for developers
implementing custom transports.
The following API changes have been issuing deprecation
warnings since 0.17.0 onwards, and are now fully deprecated...
- You should now use httpx.codes consistently instead of
httpx.StatusCodes.
- Use limits=... instead of pool_limits=....
- Use proxies={"http://": ...} instead of proxies={"http": ...}
for scheme-specific mounting.
* Changed
- Transport instances now inherit from httpx.BaseTransport or
httpx.AsyncBaseTransport, and should implement either the
handle_request method or handle_async_request method.
(Pull #1522, #1550)
- The response.ext property and Response(ext=...) argument are
now named extensions. (Pull #1522)
- The recommendation to not use data=<bytes|str|bytes
(a)iterator> in favour of content=<bytes|str|bytes
OBS-URL: https://build.opensuse.org/request/show/897234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=2