Skip to content

[Feature Request] TimeoutLayer supports per-request values #798

@cglong

Description

@cglong

Right now, TimeoutLayer accepts a Duration parameter which specifies how long to wait before aborting a response. I'd like to customize this parameter on a per-request basis.

I'm envisioning this should be doable with a trait with one method; that method takes in a request and returns the Duration. We should be able to implement this trait for Duration itself so this won't be a breaking change.

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