-
-
Notifications
You must be signed in to change notification settings - Fork 999
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Currently httpx is squarely focused on HTTP's traditional request / response paradigm, and there are well-established packages for WebSocket support such as websockets. In an HTTP/1.1-only world, this split of responsabilities makes perfect sense as HTTP requests / WebSockets work independently.
However, with HTTP/2 already widely deployed and HTTP/3 standardisation well under way I'm not sure the model holds up:
- implementations such as
websocketsare usually tied to HTTP/1.1 only, whereashttpxhas support for HTTP/2 (and hopefully soon HTTP/3) - we are missing out on the opportunity to multiplex "regular" HTTP request with WebSocket connections
Using the sans-IO wsproto combined with httpx's connection management we could provide WebSocket support spanning HTTP/1.1, HTTP/2 and HTTP/3. What are your thoughts on this?
One caveat: providing WebSocket support would only make sense using the AsyncClient interface.
ClericPy, devxpy, mvoitko, nazikus, tyler-8 and 33 moresha2fiddy and nsdensde
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request