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