Skip to content

Make generated Client and AuthenticatedClient take an httpx.Timeout object optionally? #745

@mdlam92

Description

@mdlam92

I find myself making a wrapper for the Client object to implement taking an httpx.Timeout object.

It would be cool if the generated Client objects took an float as it does today but also accepted the httpx.Timeout type for the timeout keyword argument.

httpx's Timeout is nice because it lets you configure specific timeouts for read/write/connect/global.

I'm willing to make the PR, wanted to gauge interest or if the maintainer will consider this before I go and do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions