3.16.0 (2025-12-23)
Added
- Custom strategies for TLS revocation check per
SessionorAsyncSessionvia the newrevocation_configurationparameter
that takes aRevocationConfigurationobject. - Hook can now be created via a custom class. You may now inherit from
niquests.LifecycleHookorniquests.AsyncLifecycleHookdepending on your use case.
This should considerably ease the scenario where you need to create complex hooks. - Session underlying pooling state inspecting through
repr(my_session)for debugging purposes. - Exposed
ServerSentEventin top level package imports to ease SSE related developments. AsyncHTTPDigestAuthcounterpart ofHTTPDigestAuthfor async usage. (#308)- Shortcut to pass default headers via
SessionorAsyncSessionconstruction. (#310)
Fixed
- In high concurrency scenarii the revocation check may run for multiple newly acquired connection causing a performance slowdown at warmup.