RequestDelegateFactoryOptions.ThrowOnBadRequest 属性

定义

控制除了在处理无效请求时写入Debug日志外,是否RequestDelegate还应引发 BadHttpRequestException

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

属性值

适用于