Skip to content

Releases: pydantic/httpx2

v2.7.0

Choose a tag to compare

@Kludex Kludex released this 14 Jul 20:39
c4e73cf

This release syncs the vendored WebSocket support with the latest httpx-ws, which was previously pinned to an outdated snapshot.

What's Changed

  • Update vendored httpx-ws to upstream v0.9.0 by @Kludex in #1067

Full Changelog: v2.6.0...v2.7.0

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

v2.4.0

Choose a tag to compare

@Kludex Kludex released this 11 Jun 06:30
fbf4505

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.4.0

v2.3.0

Choose a tag to compare

@Kludex Kludex released this 01 Jun 13:14
04f3804

What's Changed

  • Allow default_encoding callable to return None by @Kludex in #951
  • perf: use memoryview in write() to avoid copies by @mbeijen in #954
  • perf: use anyio fast_acquire for Lock and Semaphore by @mbeijen in #970
  • Make zstd import optional on Python 3.14 by @Kludex in #1000
  • Switch from certifi to truststore for default SSL verification by @Kludex in #209
  • Switch httpcore2 from certifi to truststore for default SSL verification by @Kludex in #1002
  • Store elapsed time on stream wrapper to avoid reference cycles by @mbeijen in #948
  • perf: Rewrite _assign_requests_to_connections as a single-pass loop by @mbeijen in #974
  • create_ssl_context: raise when verify is a str and cert is provided by @mbeijen in #990

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

Choose a tag to compare

@Kludex Kludex released this 17 May 05:29
f944aca

What's Changed

  • Handle multi-frame zstd streams split across chunks by @mbeijen in #946
  • Do a lazy import of the _main CLI module by @mbeijen in #947

Full Changelog: v2.1.0...v2.2.0

v2.1.0

Choose a tag to compare

@Kludex Kludex released this 15 May 14:46
5ff0c32

What's Changed

  • Drop Python 3.9 support, add Python 3.14 by @Kludex in #208
  • Use stdlib compression.zstd for Zstd decompression on Python 3.14+ by @Kludex in #932
  • Bundle LICENSE.md in httpx2 and httpcore2 sdists by @Kludex in #938
  • Wait for positive HTTP/2 flow-control credit when stream window goes negative by @mbeijen in #935

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

Choose a tag to compare

@Kludex Kludex released this 12 May 17:58
d426e2c

First official release!

This is fully compatible with latest httpx.

v2.0.0b1

Choose a tag to compare

@Kludex Kludex released this 11 May 16:03
4d2e525
Add 2.0.0b1 entry to CHANGELOG (#210)