Dela via


RequestTimeoutPolicy.WriteTimeoutResponse Property

Definition

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