Skip to content

v2.6.0

Choose a tag to compare

@Kludex Kludex released this 14 Jul 10:47
95aebc3

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