-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I am trying to set the timeout of my request dynamically, but it seems it must be a constant value.
Describe the solution you'd like
I would suggest that UseRequestTimeouts
have a callback option with the request context to be evaluated and set the timeout value inside of this callback.
Additional context
I am using .net in Lambda, and I could use ILambdaContext.RemainingTime - buffer
to determine when the timeout should happen, but I don't see how to do so with the current implementation.
bradlis7 and soligto
Metadata
Metadata
Assignees
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares