The main feature in this release is support for WebSockets! 🎉
from httpx2 import AsyncClient
async with httpx2.AsyncClient() as client:
async with client.websocket("ws://localhost:8000/ws") as ws:
await ws.send_text("Hello!")
message = await ws.receive_text()What's Changed
- Read _expire_at only once in has_expired() by @mbeijen in #1045
- Add native WebSocket support by vendoring httpx-ws by @Kludex in #1042
- Add QUERY method support (RFC 10008) by @Diegorro98 in #1055
- fix: clean up garbage connections on cancellation in AsyncConnectionPool by @mbeijen in #983
- Bump click lower bound to >=8.4 and drop upper bound by @drusc0 in #1040
New Contributors
- @achapkowski made their first contribution in #1058
- @hrnciar made their first contribution in #1054
- @Diegorro98 made their first contribution in #1055
- @drusc0 made their first contribution in #1041
Full Changelog: v2.5.0...v2.6.0