HTTPX2 speaks WebSockets and Server-Sent Events out of the box 🔌
- client.websocket() and client.sse() on your existing client
- Headers, cookies, auth, proxies and timeouts apply as usual
- Sync and async
- For WebSockets: pip install "httpx2[ws]"
顯示更多