13 references to HttpUtilities
Microsoft.AspNetCore.Server.Kestrel.Core (13)
BadHttpRequestException.cs (1)
27
AllowedHeader =
HttpUtilities
.MethodToString(requiredMethod.Value);
Internal\Http\Http1Connection.cs (2)
622
else if (!
HttpUtilities
.IsHostHeaderValid(hostText))
675
if (!
HttpUtilities
.IsHostHeaderValid(hostText))
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43
_methodText =
HttpUtilities
.MethodToString(Method) ?? string.Empty;
Internal\Http2\Http2Connection.cs (1)
643
httpVersion =
HttpUtilities
.GetKnownVersion(requestLine.Slice(requestLine.Length - 9, 8));
Internal\Http2\Http2Stream.cs (2)
352
Method =
HttpUtilities
.GetKnownMethod(_methodText);
401
if (host.Count > 1 || !
HttpUtilities
.IsHostHeaderValid(hostText))
Internal\Http3\Http3Stream.cs (2)
1073
Method =
HttpUtilities
.GetKnownMethod(_methodText);
1122
if (host.Count > 1 || !
HttpUtilities
.IsHostHeaderValid(hostText))
Internal\Infrastructure\KestrelTrace.BadRequests.cs (2)
35
BadRequestsLog.PossibleInvalidHttpVersionDetected(_badRequestsLogger, connectionId,
HttpUtilities
.VersionToString(expectedHttpVersion),
HttpUtilities
.VersionToString(detectedHttpVersion));
Middleware\HttpConnectionMiddleware.cs (1)
34
var altSvcHeader = _addAltSvcHeader && localEndPoint != null ?
HttpUtilities
.GetEndpointAltSvc(localEndPoint, protocols) : null;
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
32
var altSvcHeader = _addAltSvcHeader && localEndPoint != null ?
HttpUtilities
.GetEndpointAltSvc(localEndPoint, _protocols) : null;