Releases: jawah/niquests
Releases · jawah/niquests
Version 3.11.0
3.11.0 (2024-11-20)
Added
- base_url parameter to
niquests.Session
orniquests.AsyncSession
. automatically prefix every request emitted with it. (#179)
Fixed
- warning about coroutine method 'aclose' of 'AsyncSession.resolve_redirects' was never awaited.
Version 3.10.3
3.10.3 (2024-11-13)
Fixed
- Resolving lazy responses when emitted through a SOCKS, HTTP or HTTPS proxy. (#170)
Version 3.10.2
3.10.2 (2024-10-25)
Fixed
- Ensure
stream
, andverify
both defaults to yourSession
parameters. (#165)
Version 3.10.1
3.10.1 (2024-10-22)
Fixed
- Exception leak from urllib3-future when gathering / resolving lazy responses.
Version 3.10.0
3.10.0 (2024-10-21)
Added
- Automatic Advanced Keep-Alive for HTTP/2 and HTTP/3 over QUIC by sending PING frames.
New Session, and Adapter parameters are now available:keepalive_delay
, andkeepalive_idle_window
.
This greatly improves your daily experience working with HTTP/2+ remote peers.
Fixed
- Unshielded picotls assertion error in Python < 3.10 when trying to fetch the peer intermediate certificate. (#157)
Version 3.9.1
3.9.1 (2024-10-13)
Fixed
- Exception leak from urllib3-future when using WebSocket.
- Enforcing HTTP/3 in an AsyncSession. (#152)
- Adapter kwargs fallback to support old Requests extensions.
- Type hint for
Response.extension
linked to the generic interface instead of the inherited ones. - Accessing WS over HTTP/2+ using the synchronous session object.
Misc
- Documentation improvement for in-memory certificates and WebSocket use cases. (#151)
Changed
- urllib3-future lower bound version is raised to 2.10.904 to ensure exception are properly translated into urllib3-future ones for WS.
Version 3.9.0
3.9.0 (2024-10-08)
Added
- Support for WebSocket over HTTP/1, HTTP/2 and HTTP/3. It brings a unified API that makes you leverage
our powerful features like Happy Eyeballs, SOCKS/HTTP/HTTPS proxies, thread/task safety etc... - Hook for catching early responses like "103 Early Hints".
Fixed
- Informational responses are fully supported over HTTP/1, HTTP/2 and HTTP/3.
Changed
- urllib3-future lower bound version is raised to 2.10.900.
We are thankful to @microsoft and involved parties for funding our work through the Microsoft FOSS Fund program.
Version 3.8.0
3.8.0 (2024-09-24)
Added
- Support for HTTP Trailers.
- Help script now yield warnings if update are available for each sub dependencies.
Fixed
- Setting a list of Resolver.
Changed
- urllib3-future lower bound version is raised to 2.9.900 (for http trailer support).
- relax strict kwargs passing in Session adapters (required for some plugins).
Version 3.7.2
3.7.2 (2024-07-09)
Fixed
- DummyLock injected into RequestsCookieJar is not fully compatible, thus breaking AsyncSession on certain scenario. (#136)
Version 3.7.1
3.7.1 (2024-07-07)
Added
- Official support for Python 3.13
This has been tested outside GitHub CI due to httpbin unready state for 3.13[...] - Support for asynchronous auth callables.
- Support for asynchronous bodies through
AsyncIterable
that yield either bytes or str. - Support for purposely excluding a domain/port from connecting to QUIC/HTTP3 via the
quic_cache_layer
property ofSession
.
In order to excludecloudflare.com
from HTTP3 auto-upgrade:from niquests import Session s = Session() s.quic_cache_layer.exclude_domain("cloudflare.com")
Fixed
- auth argument not accepting a function according to static type checkers. (#133)
- RequestsCookieJar having a lock in
AsyncSession
. Its effect has been nullified to improve performances.
Changed
- urllib3-future lower bound version is raised to 2.8.902