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)
231KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestLineTooLong); 274KestrelBadHttpRequestException.Throw(RequestRejectionReason.HeadersExceedMaxTotalSize); 467KestrelBadHttpRequestException.Throw(RequestRejectionReason.ConnectMethodRequired); 511KestrelBadHttpRequestException.Throw(RequestRejectionReason.OptionsMethodRequired); 611KestrelBadHttpRequestException.Throw(RequestRejectionReason.MissingHostHeader); 615KestrelBadHttpRequestException.Throw(RequestRejectionReason.MultipleHostHeaders); 731KestrelBadHttpRequestException.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders); 759KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidRequestLine); 762KestrelBadHttpRequestException.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders); 777KestrelBadHttpRequestException.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);