Skip to content

Add HTTPX2 transport support #3174

Description

@adamtheturtle

HTTPX2 is the maintained continuation of HTTPX under the Pydantic organization: https://httpx2.pydantic.dev/

VWS-Python already offers Requests, synchronous HTTPX, and asynchronous HTTPX transports. HTTPX2 is a natural additional transport family, but its clients, requests, responses, exceptions, and timeout objects are distinct from the corresponding HTTPX classes.

Add synchronous and asynchronous HTTPX2 transports.

Acceptance criteria:

  • Users can choose HTTPX2-backed transports for synchronous and asynchronous VWS clients.
  • Existing Requests and HTTPX transports continue to work.
  • Timeout conversion, response conversion, closing, and exception behavior are covered for HTTPX2.
  • No code path mixes HTTPX and HTTPX2 objects.
  • The public API and documentation clearly distinguish the two transport families.
  • The HTTPX2 paths are exercised against the mock package as well as unit tests where practical.

HTTPX2's package-maintainer guidance may be useful: https://httpx2.pydantic.dev/migration/#for-package-maintainers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions