RequestTimeoutPolicy.WriteTimeoutResponse Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A callback for creating a timeout response. This is called if a timeout results in an OperationCanceledException being caught by the middleware. The status code will be set first. The status code and callback cannot be applied if the response has already started. The default behavior is an empty response with only the status code.
public Microsoft.AspNetCore.Http.RequestDelegate? WriteTimeoutResponse { get; init; }
member this.WriteTimeoutResponse : Microsoft.AspNetCore.Http.RequestDelegate with get, set
Public Property WriteTimeoutResponse As RequestDelegate
Property Value
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for