./www/py-httpx, The next generation HTTP client

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.11.1, Package name: py37-httpx-0.11.1, Maintainer: pkgsrc-users

HTTPX is a fully featured HTTP client for Python 3, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.


Required to run:
[devel/py-setuptools] [converters/py-chardet] [www/py-idna] [security/py-certifi] [www/py-h2] [www/py-h11] [lang/python37] [misc/py-sniffio] [www/py-rfc3986] [www/py-hstspreload]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: aa7d54c352ebb23dc10dbdbf15ad8ee436df4d83
RMD160: a2b5ab6924be519e1fd80458785ddfd51871eb4b
Filesize: 64.428 KB

Version history: (Expand)


CVS history: (Expand)


   2020-01-20 12:50:48 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-httpx: updated to 0.11.1

0.11.1:
Fixed
* Fixed usage of `proxies=...` on `Client()`.
* Support both `zlib` and `deflate` style encodings on `Content-Encoding: deflate`.
* Fix for streaming a redirect response body with `allow_redirects=False`.
* Handle redirect with malformed Location headers missing host.
   2020-01-14 17:10:53 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-httpx: updated to 0.11.0

0.11.0:

The 0.11 release reintroduces our sync support, so that `httpx` now supports \ 
both a standard thread-concurrency API, and an async API.

Existing async `httpx` users that are upgrading to 0.11 should ensure that:

* Async codebases should always use a client instance to make requests, instead \ 
of the top-level API.
* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.
* When instantiating proxy configurations use the `httpx.Proxy()` class, instead \ 
of the previous `httpx.HTTPProxy()`. This new configuration class works for \ 
configuring both sync and async clients.

We believe the API is now pretty much stable, and are aiming for a 1.0 release \ 
sometime on or before April 2020.

Changed
- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, \ 
`httpx.request(method, url, ...)` becomes synchronous.
- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being \ 
used for async clients.
- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.
- Network connection errors are wrapped in `httpx.NetworkError`, rather than \ 
exposing lower-level exception types directly.

Removed
- The `request.url.origin` property and `httpx.Origin` class are no longer available.
- The per-request `cert`, `verify`, and `trust_env` arguments are escalated from \ 
raising errors if used, to no longer being available. These arguments should be \ 
used on a per-client instance instead, or in the top-level API.
- The `stream` argument has escalated from raising an error when used, to no \ 
longer being available. Use the `client.stream(...)` or `httpx.stream()` \ 
streaming API instead.

Fixed
- Redirect loop detection matches against `(method, url)` rather than `url`.
   2020-01-08 21:54:27 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-httpx: added version 0.10.1

HTTPX is a fully featured HTTP client for Python 3, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.