12 references to Throw
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\Http\Http1Connection.cs (4)
626KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidHostHeader, hostText); 637KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidHostHeader, hostText); 662KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidHostHeader, hostText); 671KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidHostHeader, hostText);
Internal\Http\Http1ContentLengthMessageBody.cs (1)
250KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http\Http1MessageBody.cs (1)
121KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.ToString(CultureInfo.InvariantCulture));
Internal\Http\HttpRequestHeaders.cs (3)
87KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidContentLength, value); 105KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidContentLength, value.GetRequestHeaderString(HeaderNames.ContentLength, EncodingSelector, checkForNewlineChars: false)); 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\Http2MessageBody.cs (1)
40KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http3\Http3MessageBody.cs (1)
31KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));