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