Share via


RequestDelegateFactoryOptions.ThrowOnBadRequest Property

Definition

Controls whether the RequestDelegate should throw a BadHttpRequestException in addition to writing a Debug log when handling invalid requests.

public bool ThrowOnBadRequest { get; init; }
member this.ThrowOnBadRequest : bool with get, set
Public Property ThrowOnBadRequest As Boolean

Property Value

Applies to