e2d8a91dd6
0.20.0: Changed * The `allow_redirects` flag is now `follow_redirects` and defaults to `False`. * The `raise_for_status()` method will now raise an exception for any responses except those with 2xx status codes. Previously only 4xx and 5xx status codes would result in an exception. * The low-level transport API changes to the much simpler `response = transport.handle_request(request)`. * The `client.send()` method no longer accepts a `timeout=...` argument, but the `client.build_request()` does. This required by the signature change of the Transport API. The request timeout configuration is now stored on the request instance, as `request.extensions['timeout']`. Added * Added the `httpx` command-line client. * Response instances now include `.is_informational`, `.is_success`, `.is_redirect`, `.is_client_error`, and `.is_server_error` properties for checking 1xx, 2xx, 3xx, 4xx, and 5xx response types. Note that the behaviour of `.is_redirect` is slightly different in that it now returns True for all 3xx responses, in order to allow for a consistent set of properties onto the different HTTP status code types. The `response.has_redirect_location` location may be used to determine responses with properly formed URL redirects. Fixed * `response.iter_bytes()` no longer raises a ValueError when called on a response with no content. * The `'wsgi.error'` configuration now defaults to `sys.stderr`, and is corrected to be a `TextIO` interface, not a `BytesIO` interface. Additionally, the WSGITransport now accepts a `wsgi_error` confguration. * Follow the WSGI spec by properly closing the iterable returned by the application.
76 lines
2.6 KiB
Text
76 lines
2.6 KiB
Text
@comment $NetBSD: PLIST,v 1.8 2021/10/21 13:16:15 adam Exp $
|
|
bin/httpx-${PYVERSSUFFIX}
|
|
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
|
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
|
|
${PYSITELIB}/${EGG_INFODIR}/requires.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
|
${PYSITELIB}/httpx/__init__.py
|
|
${PYSITELIB}/httpx/__init__.pyc
|
|
${PYSITELIB}/httpx/__init__.pyo
|
|
${PYSITELIB}/httpx/__version__.py
|
|
${PYSITELIB}/httpx/__version__.pyc
|
|
${PYSITELIB}/httpx/__version__.pyo
|
|
${PYSITELIB}/httpx/_api.py
|
|
${PYSITELIB}/httpx/_api.pyc
|
|
${PYSITELIB}/httpx/_api.pyo
|
|
${PYSITELIB}/httpx/_auth.py
|
|
${PYSITELIB}/httpx/_auth.pyc
|
|
${PYSITELIB}/httpx/_auth.pyo
|
|
${PYSITELIB}/httpx/_client.py
|
|
${PYSITELIB}/httpx/_client.pyc
|
|
${PYSITELIB}/httpx/_client.pyo
|
|
${PYSITELIB}/httpx/_compat.py
|
|
${PYSITELIB}/httpx/_compat.pyc
|
|
${PYSITELIB}/httpx/_compat.pyo
|
|
${PYSITELIB}/httpx/_config.py
|
|
${PYSITELIB}/httpx/_config.pyc
|
|
${PYSITELIB}/httpx/_config.pyo
|
|
${PYSITELIB}/httpx/_content.py
|
|
${PYSITELIB}/httpx/_content.pyc
|
|
${PYSITELIB}/httpx/_content.pyo
|
|
${PYSITELIB}/httpx/_decoders.py
|
|
${PYSITELIB}/httpx/_decoders.pyc
|
|
${PYSITELIB}/httpx/_decoders.pyo
|
|
${PYSITELIB}/httpx/_exceptions.py
|
|
${PYSITELIB}/httpx/_exceptions.pyc
|
|
${PYSITELIB}/httpx/_exceptions.pyo
|
|
${PYSITELIB}/httpx/_main.py
|
|
${PYSITELIB}/httpx/_main.pyc
|
|
${PYSITELIB}/httpx/_main.pyo
|
|
${PYSITELIB}/httpx/_models.py
|
|
${PYSITELIB}/httpx/_models.pyc
|
|
${PYSITELIB}/httpx/_models.pyo
|
|
${PYSITELIB}/httpx/_multipart.py
|
|
${PYSITELIB}/httpx/_multipart.pyc
|
|
${PYSITELIB}/httpx/_multipart.pyo
|
|
${PYSITELIB}/httpx/_status_codes.py
|
|
${PYSITELIB}/httpx/_status_codes.pyc
|
|
${PYSITELIB}/httpx/_status_codes.pyo
|
|
${PYSITELIB}/httpx/_transports/__init__.py
|
|
${PYSITELIB}/httpx/_transports/__init__.pyc
|
|
${PYSITELIB}/httpx/_transports/__init__.pyo
|
|
${PYSITELIB}/httpx/_transports/asgi.py
|
|
${PYSITELIB}/httpx/_transports/asgi.pyc
|
|
${PYSITELIB}/httpx/_transports/asgi.pyo
|
|
${PYSITELIB}/httpx/_transports/base.py
|
|
${PYSITELIB}/httpx/_transports/base.pyc
|
|
${PYSITELIB}/httpx/_transports/base.pyo
|
|
${PYSITELIB}/httpx/_transports/default.py
|
|
${PYSITELIB}/httpx/_transports/default.pyc
|
|
${PYSITELIB}/httpx/_transports/default.pyo
|
|
${PYSITELIB}/httpx/_transports/mock.py
|
|
${PYSITELIB}/httpx/_transports/mock.pyc
|
|
${PYSITELIB}/httpx/_transports/mock.pyo
|
|
${PYSITELIB}/httpx/_transports/wsgi.py
|
|
${PYSITELIB}/httpx/_transports/wsgi.pyc
|
|
${PYSITELIB}/httpx/_transports/wsgi.pyo
|
|
${PYSITELIB}/httpx/_types.py
|
|
${PYSITELIB}/httpx/_types.pyc
|
|
${PYSITELIB}/httpx/_types.pyo
|
|
${PYSITELIB}/httpx/_utils.py
|
|
${PYSITELIB}/httpx/_utils.pyc
|
|
${PYSITELIB}/httpx/_utils.pyo
|
|
${PYSITELIB}/httpx/py.typed
|