10 references to MethodToString
InMemory.FunctionalTests (3)
RequestTargetProcessingTests.cs (1)
116$"{HttpUtilities.MethodToString(method)} {requestTarget} HTTP/1.1",
ResponseTests.cs (2)
698$"{HttpUtilities.MethodToString(method)} / HTTP/1.1", 736$"{HttpUtilities.MethodToString(method)} / HTTP/1.1",
Microsoft.AspNetCore.Server.Kestrel.Core (2)
BadHttpRequestException.cs (1)
27AllowedHeader = HttpUtilities.MethodToString(requiredMethod.Value);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43_methodText = HttpUtilities.MethodToString(Method) ?? string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http1\Http1ConnectionTests.cs (1)
567Assert.Equal(HttpUtilities.MethodToString(allowedMethod), exception.AllowedHeader);
HttpParserTests.cs (2)
917Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.GetAsciiString(); 935Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.GetAsciiString();
HttpUtilitiesTest.cs (2)
44toString = HttpUtilities.MethodToString(knownMethod); 122return HttpUtilities.MethodToString(method);