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