Skip to content

export default Limits and Timeout #1057

Description

@calestyo

Hey.

I've had already stumbled over this in the original httpx, but then it's development had already - let's say diplomatically - "ceased".

AFAICS, it's not possible to generate Limits and/or Timeout, where only certain settings are overwritten, without using "private" API.

The defaults are encoded here:

DEFAULT_TIMEOUT_CONFIG = Timeout(timeout=5.0)
DEFAULT_LIMITS = Limits(max_connections=100, max_keepalive_connections=20)
DEFAULT_MAX_REDIRECTS = 20

but _config is strictly speaking private.

Would be nice if these could be somehow exported, or perhaps simply merged into the __init__-methods of their classes?

Thanks,
Chris.

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