47 references to KestrelBadHttpRequestException
Microsoft.AspNetCore.Server.Kestrel.Core (47)
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 (14)
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);
626
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidHostHeader, hostText);
637
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidHostHeader, hostText);
662
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidHostHeader, hostText);
671
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidHostHeader, hostText);
724
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders);
752
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidRequestLine);
755
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.MalformedRequestInvalidHeaders);
770
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestHeadersTimeout);
Internal\Http\Http1ContentLengthMessageBody.cs (6)
46
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTimeout);
85
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTimeout);
132
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTimeout);
250
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
272
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.UnexpectedEndOfRequestContent);
277
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTimeout);
Internal\Http\Http1MessageBody.cs (4)
121
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.ToString(CultureInfo.InvariantCulture));
166
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.FinalTransferCodingNotChunked, transferEncoding);
211
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.LengthRequiredHttp10, context.Method);
240
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.UnexpectedEndOfRequestContent);
Internal\Http\HttpParser.cs (2)
248
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidRequestHeadersNoCRLF);
597
=>
KestrelBadHttpRequestException
.GetException(
Internal\Http\HttpProtocol.cs (2)
563
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.TooManyHeaders);
1396
=>
KestrelBadHttpRequestException
.GetException(
Internal\Http\HttpRequestHeaders.cs (5)
87
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidContentLength, value);
98
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.MultipleContentLengths);
105
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidContentLength, value.GetRequestHeaderString(HeaderNames.ContentLength, EncodingSelector, checkForNewlineChars: false));
117
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.MultipleContentLengths);
129
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.InvalidContentLength, value.GetRequestHeaderString(HeaderNames.ContentLength, EncodingSelector, checkForNewlineChars: false));
Internal\Http\MessageBody.cs (1)
200
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.ToString(CultureInfo.InvariantCulture));
Internal\Http2\Http2Connection.cs (1)
263
Log.ConnectionBadRequest(ConnectionId,
KestrelBadHttpRequestException
.GetException(RequestRejectionReason.RequestHeadersTimeout));
Internal\Http2\Http2MessageBody.cs (1)
40
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http2\Http2Stream.cs (2)
223
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.HeadersExceedMaxTotalSize);
229
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.TooManyHeaders);
Internal\Http3\Http3Connection.cs (1)
896
Log.ConnectionBadRequest(ConnectionId,
KestrelBadHttpRequestException
.GetException(RequestRejectionReason.RequestHeadersTimeout));
Internal\Http3\Http3MessageBody.cs (1)
31
KestrelBadHttpRequestException
.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
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);