Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose timeout field in Request #1745

Open
TAYTS opened this issue Apr 1, 2024 · 1 comment
Open

Expose timeout field in Request #1745

TAYTS opened this issue Apr 1, 2024 · 1 comment

Comments

@TAYTS
Copy link

TAYTS commented Apr 1, 2024

I want to retrieve the timeout with custom RoundTripper without creating another wrapper for the Request to tweak how the timeout is being handled or is it possible we could support user custom values similar to RequestCtx.userValues to allow the flexibility to inject value to the request?
The use case for this is that the current HostClient timeout is set for the whole request and for stream response I would like to fail the request if the response header is slow but wait for the response body for slightly longer time or a constant deadline extend if there are incoming data from stream

@erikdubbelboer
Copy link
Collaborator

I would be open to a pull request to add a method to expose this. But it needs some good documentation to make clear what it's for.

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

No branches or pull requests

2 participants