Skip to content

Support for intercepting httpx custom transports (BaseTransport) such as httpx-curl-cffi? #968

@epicwhale

Description

@epicwhale

I use vcrpy to record/replay httpx requests for offline unit tests. This works when httpx uses the default stack, but fails when httpx.Client/AsyncClient is configured with a custom transport (e.g https://github.com/vgavro/httpx-curl-cffi)

It looks like VCR patches httpcore, so custom transports bypass interception?

Is there an intended/official way to support recording/replay for such custom httpx.BaseTransport implementations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions