Skip to content

feat: add per-client HTTPX adapters - #191

Draft
parvahuja wants to merge 1 commit into
parv/sync-payment-transport-v0.13from
parv/httpx-client-adapters-v0.14
Draft

feat: add per-client HTTPX adapters#191
parvahuja wants to merge 1 commit into
parv/sync-payment-transport-v0.13from
parv/httpx-client-adapters-v0.14

Conversation

@parvahuja

@parvahuja parvahuja commented Jul 28, 2026

Copy link
Copy Markdown
Member

Stack 6 of 8 · depends on #190 · next: #192

Summary

  • add wrap_client() and wrap_async_client() for existing HTTPX instances
  • fail fast when the installed HTTPX seam is unsupported or the client kind is wrong
  • make wrapping transactional: partial mutation is rolled back on failure
  • declare and test support for HTTPX 0.27.x and 0.28.x

Scope

Explicit per-client opt-in only. Global instrumentation is intentionally deferred to #192.

Validation

  • 910 passed, 41 skipped
  • adapter suite passes on HTTPX 0.27.0, 0.27.1, 0.27.2, 0.28.0, and 0.28.1
  • Ruff, formatting, Pyright, diff checks, and Python 3.11–3.14 CI pass

Managed as a stacked change with GitHub Stacks.

@parvahuja
parvahuja force-pushed the parv/httpx-client-adapters-v0.14 branch from 48fa4f6 to 247c2ac Compare July 28, 2026 18:26
@parvahuja
parvahuja force-pushed the parv/httpx-client-adapters-v0.14 branch from 247c2ac to 2a120e8 Compare July 28, 2026 23:25
@parvahuja
parvahuja force-pushed the parv/httpx-client-adapters-v0.14 branch from 2a120e8 to c821796 Compare July 29, 2026 00:43
@parvahuja
parvahuja force-pushed the parv/httpx-client-adapters-v0.14 branch from c821796 to 79739ad Compare July 29, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant