github pydantic/httpx2 v2.6.0

5 hours ago

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

Full Changelog: v2.5.0...v2.6.0

Don't miss a new httpx2 release

NewReleases is sending notifications on new releases.