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