BadHttpRequestException.Throw(RequestRejectionReason, HttpMethod) Method
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.
public:
static void Throw(Microsoft::AspNetCore::Server::Kestrel::Core::Internal::Http::RequestRejectionReason reason, Microsoft::AspNetCore::Server::Kestrel::Core::Internal::Http::HttpMethod method);
public static void Throw (Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason reason, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod method);
static member Throw : Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason * Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod -> unit
Public Shared Sub Throw (reason As RequestRejectionReason, method As HttpMethod)
Parameters
- reason
- Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason
- method
- Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod