Skip to content

Add __repr__ for connection pools #861

Closed

Description

@rattrayalex

For example (proposed by @tomchristie):

>>> client = httpx.Client()
>>> client.transport
<httpx.HTTPTransport [Connections: 0 active, 0 keep-alive. Requests: 0 active, 0 queued.]>

Ideally, this will be followed by a public API to access this information programatically.

(Note that I am filing this issue as requested, but do not expect to use it myself, as I am interested primarily in the programmatic access).

cc @RobertCraigie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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