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