You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
2.10.900 (2024-10-07)
Added complete support for Informational Response whether it's an early response or not. We introduced a callback named on_early_response that takes exactly one parameter, namely a HTTPResponse. You may start leveraging Early Hints!
This works regardless of the negotiated protocol: HTTP/1.1, HTTP/2 or HTTP/3! As always, you may use that feature
in a synchronous or asynchronous context.
Changed qh3 lower bound version to v1.2 in order to support Informational Response in HTTP/3 also.
Added full automated support for WebSocket through HTTP/1.1, HTTP/2 or HTTP/3.
In order to leverage this feature, urllib3-future now recognize url scheme ws:// (insecure) and wss:// (secure).
The response will be of status 101 (Switching Protocol) and the body will be None.
Most servers out there only support WebSocket through HTTP/1.1, and using HTTP/2 or HTTP/3 usually ends up in stream (reset) error.
By default, connecting to wss:// or ws:// use HTTP/1.1, but if you desire to leverage the WebSocket through a multiplexed connection,
use wss+rfc8441:// or ws+rfc8441://.
A new property has been introduced in HTTPResponse, namely extension to be able to interact with the websocket
server. Everything is handled automatically, from thread safety to all the protocol logic. See the documentation for more.
This will require the installation of an optional dependency wsproto, to do so, please install urllib3-future with pip install urllib3-future[ws].
Fixed a rare issue where the :authority (special header) value might be malformed.