Zum Inhalt springen

HTTPX Release Notes

30 Einträge aus 1 Quelle. Zuletzt aktualisiert:

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX Version 0.28.1

Behoben wurde ein SSL-Fehler bei der Kombination von verify=False mit clientseitigen Zertifikaten.

0.28.1 (6th December, 2024)

  • Fix SSL case where verify=False together with client side certificates.

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX Version 0.28.0 mit SSL-Deprecations

Version 0.28.0 depreziert verify als String und das cert-Argument, entfernt die Argumente proxies und app, nutzt kompakte JSON-Bodies, akzeptiert socks5h als Proxy-Schema und behebt das Verhalten von params={}.

0.28.0 (28th November, 2024)

The 0.28 release includes a limited set of deprecations.

Deprecations:

We are working towards a simplified SSL configuration API.

For users of the standard verify=True or verify=False cases, or verify=<ssl_context> case this should require no changes. The following cases have been deprecated...

  • The verify argument as a string argument is now deprecated and will raise warnings.
  • The cert argument is now deprecated and will raise warnings.

Our revised SSL documentation covers how to implement the same behaviour with a more constrained API.

The following changes are also included:

  • The deprecated proxies argument has now been removed.
  • The deprecated app argument has now been removed.
  • JSON request bodies use a compact representation. (#3363)
  • Review URL percent escape sets, based on WHATWG spec. (#3371, #3373)
  • Ensure certifi and httpcore are only imported if required. (#3377)
  • Treat socks5h as a valid proxy scheme. (#3178)
  • Cleanup Request() method signature in line with client.request() and httpx.request(). (#3378)
  • Bugfix: When passing params={}, always strictly update rather than merge with an existing querystring. (#3364)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX Version 0.27.2

Die zuvor entfernte, eigentlich private Kurzform URLTypes wurde wieder eingeführt.

0.27.2 (27th August, 2024)

Fixed

  • Reintroduced supposedly-private URLTypes shortcut. (#2673)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX Version 0.27.1

Neu ist die Unterstützung für zstd-Content-Decoding über httpx[zstd], außerdem wurden die Fehlermeldungen bei InvalidURL und die Typsignatur von app in ASGITransport verbessert.

0.27.1 (27th August, 2024)

Added

  • Support for zstd content decoding using the python zstandard package is added. Installable using httpx[zstd]. (#3139)

Fixed

  • Improved error messaging for InvalidURL exceptions. (#3250)
  • Fix app type signature in ASGITransport. (#3109)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX Version 0.27.0

Die app=...-Kurzform ist veraltet (stattdessen WSGITransport oder ASGITransport nutzen), zudem wird das http1-Argument bei Proxy-Transports beachtet und der RFC-2069-Digest-Modus korrigiert.

0.27.0 (21st February, 2024)

Deprecated

  • The app=... shortcut has been deprecated. Use the explicit style of transport=httpx.WSGITransport() or transport=httpx.ASGITransport() instead.

Fixed

  • Respect the http1 argument while configuring proxy transports. (#3023)
  • Fix RFC 2069 mode digest authentication. (#3045)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.26.0: Neues proxy-Argument, proxies veraltet

Das neue Argument proxy ersetzt das nun veraltete proxies (für komplexere Konfigurationen dient mounts=), außerdem wurden mehrere Fehler bei URL-Escaping, NO_PROXY, ASGI raw_path und Response.iter_text() behoben.

0.26.0 (20th December, 2023)

Added

  • The proxy argument was added. You should use the proxy argument instead of the deprecated proxies, or use mounts= for more complex configurations. (#2879)

Deprecated

  • The proxies argument is now deprecated. It will still continue to work, but it will be removed in the future. (#2879)

Fixed

  • Fix cases of double escaping of URL path components. Allow / as a safe character in the query portion. (#2990)
  • Handle NO_PROXY envvar cases when a fully qualified URL is supplied as the value. (#2741)
  • Allow URLs where username or password contains unescaped '@'. (#2986)
  • Ensure ASGI raw_path does not include URL query component. (#2999)
  • Ensure Response.iter_text() cannot yield empty strings. (#2998)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.25.2: Fehlende Type Hints ergänzt

In einigen __init__()-Methoden wurden fehlende Type Hints hinzugefügt.

0.25.2 (24th November, 2023)

Added

  • Add missing type hints to few __init__() methods. (#2938)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.25.1: Python 3.12 und httpcore 1.0 unterstützt

HTTPX unterstützt nun Python 3.12 und httpcore 1.0, und das Setzen von Response.encoding nach dem Zugriff auf Response.text löst jetzt einen ValueError aus.

0.25.1 (3rd November, 2023)

  • Add support for Python 3.12. (#2854)
  • Add support for httpcore 1.0 (#2885)

Fixed

  • Raise ValueError on Response.encoding being set after Response.text has been accessed. (#2852)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.25.0: HTTPS-Proxys, Python 3.7 entfällt

HTTPX unterstützt HTTPS-Proxys, bietet das Argument socket_options für die Transport-Klassen und lässt Response.raise_for_status() die Response zurückgeben, während Python 3.7 nicht mehr unterstützt wird und mehrere Fehler behoben wurden.

0.25.0 (11th Sep, 2023)

Removed

  • Drop support for Python 3.7. (#2813)

Added

  • Support HTTPS proxies. (#2845)
  • Change the type of Extensions from Mapping[Str, Any] to MutableMapping[Str, Any]. (#2803)
  • Add socket_options argument to httpx.HTTPTransport and httpx.AsyncHTTPTransport classes. (#2716)
  • The Response.raise_for_status() method now returns the response instance. For example: data = httpx.get('...').raise_for_status().json(). (#2776)

Fixed

  • Return 500 error response instead of exceptions when raise_app_exceptions=False is set on ASGITransport. (#2669)
  • Ensure all WSGITransport environs have a SERVER_PROTOCOL. (#2708)
  • Always encode forward slashes as %2F in query parameters (#2723)
  • Use Mozilla documentation instead of httpstatuses.com for HTTP error reference (#2768)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.24.1: Fehlerbehebungen und mehr Kontext bei InvalidURL

Einige InvalidURL-Exceptions liefern mehr Kontext, und es wurden mehrere Fehler behoben, darunter Percent-Encoding, IP-Adressen in NO_PROXY, NetRCAuth()-Standarddatei und Logging asynchroner Requests.

0.24.1 (17th May, 2023)

Added

  • Provide additional context in some InvalidURL exceptions. (#2675)

Fixed

  • Fix optional percent-encoding behaviour. (#2671)
  • More robust checking for opening upload files in binary mode. (#2630)
  • Properly support IP addresses in NO_PROXY environment variable. (#2659)
  • Set default file for NetRCAuth() to None to use the stdlib default. (#2667)
  • Set logging request lines to INFO level for async requests, in line with sync requests. (#2656)
  • Fix which gen-delims need to be escaped for path/query/fragment components in URL. (#2701)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.24.0: Neues Logging, geänderte Query-Kodierung, NetRCAuth

Das Logging folgt nun dem Python-Standard ohne TRACE-Level und HTTPX_LOG_LEVEL, Response.iter_lines() enthält keine Zeilenumbrüche mehr, Query-Parameter nutzen %20 statt +, NetRC erfordert die explizite Klasse httpx.NetRCAuth(), und die Abhängigkeit rfc3986 wurde entfernt.

0.24.0 (6th April, 2023)

Changed

  • The logging behaviour has been change to be more in-line with other standard Python logging usages. We no longer have a custom TRACE log level, and we no longer use the HTTPX_LOG_LEVEL environment variable to auto-configure logging. We now have a significant amount of DEBUG logging available at the network level. Full documentation is available at https://www.python-httpx.org/logging/ (#2547, encode/httpcore#648)
  • The Response.iter_lines() method now matches the stdlib behaviour and does not include the newline characters. It also resolves a performance issue. (#2423)
  • Query parameter encoding switches from using + for spaces and %2F for forward slash, to instead using %20 for spaces and treating forward slash as a safe, unescaped character. This differs from requests, but is in line with browser behavior in Chrome, Safari, and Firefox. Both options are RFC valid. (#2543)
  • NetRC authentication is no longer automatically handled, but is instead supported by an explicit httpx.NetRCAuth() authentication class. See the documentation at https://www.python-httpx.org/advanced/#netrc-support (#2525)

Removed

  • The rfc3986 dependancy has been removed. (#2252)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.23.3: Strengere Typprüfung für Query-Parameter zurückgenommen

Die versehentlich in 0.23.2 eingeführte strengere Typprüfung bei Query-Parametern wurde wieder rückgängig gemacht.

0.23.3 (4th Jan, 2023)

Fixed

  • Version 0.23.2 accidentally included stricter type checking on query parameters. This shouldn've have been included in a minor version bump, and is now reverted. (#2523, #2539)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.23.2: Digest-Auth-Nonce-Zählung und Korrekturen

HTTPX unterstützt Nonce-Counting bei Digest-Auth, nutzt bei Multipart-Uploads mit unbekannter Dateilänge chunked Transfer Encoding, wirft einen TypeError bei dict-Inhalten und stellt url.raw als einfaches Named-Tuple wieder bereit.

0.23.2 (2nd Jan, 2023)

Added

  • Support digest auth nonce counting to avoid multiple auth requests. (#2463)

Fixed

  • Multipart file uploads where the file length cannot be determine now use chunked transfer encoding, rather than loading the entire file into memory in order to determine the Content-Length. (#2382)
  • Raise TypeError if content is passed a dict-instance. (#2495)
  • Partially revert the API breaking change in 0.23.1, which removed RawURL. We continue to expose a url.raw property which is now a plain named-tuple. This API is still expected to be deprecated, but we will do so with a major version bump. (#2481)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.23.1: Python 3.11, Multipart-Erweiterungen, RawURL entfernt

HTTPX unterstützt Python 3.11 und Connection Upgrades, erlaubt einen expliziten Multipart-Boundary sowie tuple, list und str bei Multipart-Werten, behält leere Query-Parameter bei und entfernt RawURL sowie .read/.aread von SyncByteStream/AsyncByteStream.

0.23.1

Added

  • Support for Python 3.11. (#2420)
  • Allow setting an explicit multipart boundary in Content-Type header. (#2278)
  • Allow tuple or list for multipart values, not just list. (#2355)
  • Allow str content for multipart upload files. (#2400)
  • Support connection upgrades. See https://www.encode.io/httpcore/extensions/#upgrade-requests

Fixed

  • Don't drop empty query parameters. (#2354)

Removed

  • Drop .read/.aread from SyncByteStream/AsyncByteStream (#2407)
  • Drop RawURL. (#2241)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.23.0: utf-8 als Standard, Python 3.6 entfällt

HTTPX nutzt utf-8 als Standardzeichensatz statt automatischer Erkennung, unterstützt Python 3.6 nicht mehr und behebt zahlreiche Fehler, unter anderem bei Digest-Auth, Multipart-Uploads, Redirects und im Kommandozeilen-Client.

0.23.0 (23rd May, 2022)

Changed

  • Drop support for Python 3.6. (#2097)
  • Use utf-8 as the default character set, instead of falling back to charset-normalizer for auto-detection. To enable automatic character set detection, see the documentation. (#2165)

Fixed

  • Fix URL.copy_with for some oddly formed URL cases. (#2185)
  • Digest authentication should use case-insensitive comparison for determining which algorithm is being used. (#2204)
  • Fix console markup escaping in command line client. (#1866)
  • When files are used in multipart upload, ensure we always seek to the start of the file. (#2065)
  • Ensure that iter_bytes never yields zero-length chunks. (#2068)
  • Preserve Authorization header for redirects that are to the same origin, but are an http-to-https upgrade. (#2074)
  • When responses have binary output, don't print the output to the console in the command line client. Use output like <16086 bytes of binary data> instead. (#2076)
  • Fix display of --proxies argument in the command line client help. (#2125)
  • Close responses when task cancellations occur during stream reading. (#2156)
  • Fix type error on accessing .request on HTTPError exceptions. (#2158)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.22.0: SOCKS5-Proxy und eigene Multipart-Header

HTTPX unterstützt das SOCKS5-Proxy-Protokoll über das Paket socksio sowie eigene Header in multipart/form-data-Requests, außerdem wurden __del__-Warnungen bei nicht geschlossenen Clients und Headers.update(...) korrigiert.

0.22.0 (26th January, 2022)

Added

Fixed

  • Don't perform unreliable close/warning on __del__ with unclosed clients. (#2026)
  • Fix Headers.update(...) to correctly handle repeated headers (#2038)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.21.3: Streaming-Uploads repariert

Streaming-Uploads mit SyncByteStream oder AsyncByteStream funktionieren wieder, eine Regression aus 0.21.2 wurde behoben.

0.21.3 (6th January, 2022)

Fixed

  • Fix streaming uploads using SyncByteStream or AsyncByteStream. Regression in 0.21.2. (#2016)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.21.2: HTTP/2 über Proxy-Tunnel, schnellere Uploads

HTTP/2 funktioniert nun bei getunnelten Proxys, und große Datei-Uploads sind schneller.

0.21.2 (5th January, 2022)

Fixed

  • HTTP/2 support for tunnelled proxy cases. (#2009)
  • Improved the speed of large file uploads. (#1948)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.21.1: Korrekte Typannotation für response.url

Die Eigenschaft response.url ist jetzt korrekt als URL statt als Optional[URL] annotiert.

0.21.1 (16th November, 2021)

Fixed

  • The response.url property is now correctly annotated as URL, instead of Optional[URL]. (#1940)

Originalquelle(öffnet in neuem Tab)Problem melden

Angaben zum Datum

Datum aus der Quelle.

Erstmals gesehen am .

HTTPX

HTTPX 0.21.0: Neues httpcore-Backend, mehr Infos im CLI-Client

HTTPX 0.21.0 nutzt ein neu gestaltetes httpcore-Backend (benötigt httpx==0.21.* und httpcore==0.14.*), und der Kommandozeilen-Client zeigt mit -v/--verbose Verbindungs- und Serverzertifikatsinformationen an und erkennt HTTP/1.1 bzw. HTTP/2 korrekt.

0.21.0 (15th November, 2021)

The 0.21.0 release integrates against a newly redesigned httpcore backend.

Both packages ought to automatically update to the required versions, but if you are seeing any issues, you should ensure that you have httpx==0.21.* and httpcore==0.14.* installed.

Added

  • The command-line client will now display connection information when -v/--verbose is used.
  • The command-line client will now display server certificate information when -v/--verbose is used.
  • The command-line client is now able to properly detect if the outgoing request should be formatted as HTTP/1.1 or HTTP/2, based on the result of the HTTP/2 negotiation.

Originalquelle(öffnet in neuem Tab)Problem melden