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