unstale

pypi / geventhttpclient

geventhttpclient

What changed in geventhttpclient 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

19 breaking1 security2 deprecations3 new APIs and options3 behavior and defaults2 tooling16 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

geventhttpclient 246 changes

Breaking changes 19

  • The requests surface omits headers with a None value and drops a matching session header; HTTPClient and geventhttpclient.httpx raise TypeError instead of sending None as a string.

    2.6.2release notes

  • check_hostname now defaults to True.

    2.6.0release notes

  • The minimum required gevent version is now 25.9, the first release with wheels for Python 3.11–3.14.

    2.6.0release notes

  • Header field names and values are now str instead of bytes.

    2.6.0release notes

  • Headers.iget() has been removed.

    2.6.0release notes

  • Headers.iteroriginal() has been removed.

    2.6.0release notes

  • Multi-value headers now send one field line per element.

    2.6.0release notes

  • The oauth2 extra has been removed.

    2.6.0release notes

  • Redirect behavior was updated for HTTP conformance to RFC 9110, 3986, and 2965.

    2.6.0release notes

  • Retries after a transmission error are now limited to idempotent methods.

    2.6.0release notes

  • Returns bytes instead of bytearray.

    2.5.0release notes

  • Returns bytes instead of bytearray; calling it on a released response raises HTTPConnectionClosed.

    2.5.0release notes

  • Calling readline() on a released response raises HTTPConnectionClosed.

    2.5.0release notes

  • When several file tuples carry a custom boundary, the first one wins instead of the last.

    2.5.0release notes

  • Python 3.11 or later is required.

    2.5.0release notes

  • SSL support is mandatory; environments without the ssl module are no longer supported by fallbacks.

    2.5.0release notes

  • urllib3 is no longer a runtime dependency; it remains available via the benchmarks extra.

    2.5.0release notes

  • This is the last release supporting Python 3.9; the next release will require Python 3.11 or later.

    2.4.0release notes

  • Bodies are encoded automatically when the chunked header is set, and bodies of unknown length use chunked encoding automatically.

    2.4.0release notes

Security 1

  • The vendored parser is updated to v9.4.3, including a fix for HTTP request smuggling via content-length obfuscation.

    2.4.0release notes

Deprecations 2

  • cert_file is deprecated in favour of a custom SSL context.

    2.6.0release notes

  • key_file is deprecated in favour of a custom SSL context.

    2.6.0release notes

New APIs and options 3

  • BasicAuth is now available as a first-class authentication feature.

    2.6.0release notes

  • An httpx-compatible drop-in surface is now available.

    2.6.0release notes

  • Adds CONNECT tunneling with optional Basic authentication for HTTPS targets and absolute-URI forwarding for plain HTTP.

    2.4.0release notes

Behavior and default changes 3

  • Request-head validation was updated as part of HTTP conformance work.

    2.6.0release notes

  • The response surface is now requests-compatible.

    2.6.0release notes

  • Supports 100-continue: sends the body only after an interim response and returns final rejection responses without sending it.

    2.4.0release notes

Tooling 2

  • A non-gevent test mode is available via NON_GEVENT=1, with a dedicated CI job.

    2.5.0release notes

  • Full type annotations are provided for the core modules url, header, response, connectionpool, and client.

    2.5.0release notes

Fixes and other changes 16

  • Python 3.15 is explicitly supported, with cp315 wheels built and shipped alongside wheels for Python 3.11–3.14.

    2.6.1release notes

  • Empty responses through the httplib shim are fixed.

    2.6.0release notes

  • Semicolon path parameters are preserved in requests and redirects.

    2.6.0release notes

  • Requests with body=None are now treated as having no body, avoiding chunked transfer and a keep-alive delay caused by a separate terminating write.

    2.5.1release notes

  • An explicitly requested chunked request with an empty body is sent with the request headers in a single sendall(), avoiding a Nagle stall.

    2.5.1release notes

  • Importing geventhttpclient.url no longer raises a NameError on Python <= 3.13.

    2.5.0release notes

  • Header fields, header values, and status messages are decoded as latin-1 per RFC 9110, matching http.client behavior.

    2.5.0release notes

  • The body parameter is accepted again.

    2.5.0release notes

  • Requests inside CONNECT tunnels are sent in origin form rather than absolute-URI form.

    2.4.0release notes

  • Returns the server's early rejection response instead of raising a broken pipe error when a connection breaks while sending a large request body.

    2.4.0release notes

  • Interim 1xx responses are treated as bodyless, and the status parse error is renamed to “Invalid status code”.

    2.4.0release notes

  • Prevents sending Content-Length alongside chunked transfer encoding.

    2.4.0release notes

  • Socket validation uses select() to support stdlib SSL.

    2.3.9release notes

  • Adds connection validation to prevent stale connection reuse.

    2.3.8release notes

  • Explicitly supports Python 3.13 and 3.14.

    2.3.6release notes

  • Fixed Headers.extend.

    2.3.5release notes