29 references to Throw
Microsoft.AspNetCore.Server.Kestrel.Core (29)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (4)
110KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout); 345KestrelBadHttpRequestException.Throw(RequestRejectionReason.BadChunkSizeData); 441KestrelBadHttpRequestException.Throw(RequestRejectionReason.BadChunkSuffix); 500KestrelBadHttpRequestException.Throw(RequestRejectionReason.BadChunkSizeData);
Internal\Http\Http1Connection.cs (10)
232KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestLineTooLong); 275KestrelBadHttpRequestException.Throw(RequestRejectionReason.HeadersExceedMaxTotalSize); 468KestrelBadHttpRequestException.Throw(RequestRejectionReason.ConnectMethodRequired); 512KestrelBadHttpRequestException.Throw(RequestRejectionReason.OptionsMethodRequired); 612KestrelBadHttpRequestException.Throw(RequestRejectionReason.MissingHostHeader); 616KestrelBadHttpRequestException.Throw(RequestRejectionReason.MultipleHostHeaders); 724KestrelBadHttpRequestException.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders); 752KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidRequestLine); 755KestrelBadHttpRequestException.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders); 770KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestHeadersTimeout);
Internal\Http\Http1ContentLengthMessageBody.cs (5)
46KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout); 85KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout); 132KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout); 272KestrelBadHttpRequestException.Throw(RequestRejectionReason.UnexpectedEndOfRequestContent); 277KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout);
Internal\Http\Http1MessageBody.cs (1)
240KestrelBadHttpRequestException.Throw(RequestRejectionReason.UnexpectedEndOfRequestContent);
Internal\Http\HttpParser.cs (1)
248KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidRequestHeadersNoCRLF);
Internal\Http\HttpProtocol.cs (1)
563KestrelBadHttpRequestException.Throw(RequestRejectionReason.TooManyHeaders);
Internal\Http\HttpRequestHeaders.cs (2)
98KestrelBadHttpRequestException.Throw(RequestRejectionReason.MultipleContentLengths); 117KestrelBadHttpRequestException.Throw(RequestRejectionReason.MultipleContentLengths);
Internal\Http2\Http2Stream.cs (2)
223KestrelBadHttpRequestException.Throw(RequestRejectionReason.HeadersExceedMaxTotalSize); 229KestrelBadHttpRequestException.Throw(RequestRejectionReason.TooManyHeaders);
Internal\Http3\Http3Stream.cs (2)
968KestrelBadHttpRequestException.Throw(RequestRejectionReason.HeadersExceedMaxTotalSize); 974KestrelBadHttpRequestException.Throw(RequestRejectionReason.TooManyHeaders);
Internal\Infrastructure\HttpUtilities.cs (1)
97KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidCharactersInHeaderName);