1 write to HttpMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
26HttpMethod = GetHttpMethod(operation);
12 references to HttpMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (12)
RequestDelegateGenerator.cs (4)
67codeWriter.WriteLine($"internal static RouteHandlerBuilder {endpoint.HttpMethod}{endpointWithLocations.Index}("); 71if (endpoint.HttpMethod != "MapFallback" || endpoint.Operation.Arguments.Length != 2) 76if (endpoint.HttpMethod == "MapMethods") 141if (endpoint.HttpMethod != "MapFallback" && endpoint.Operation.Arguments.Length != 2)
StaticRouteHandlerModel\Endpoint.cs (3)
119!a.HttpMethod.Equals(b.HttpMethod, StringComparison.Ordinal) || 140hashCode.Add(endpoint.HttpMethod);
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (3)
14public bool Equals(Endpoint x, Endpoint y) => OrdinalComparer.Equals(x.HttpMethod, y.HttpMethod); 16public int GetHashCode(Endpoint obj) => OrdinalComparer.GetHashCode(obj.HttpMethod);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (2)
46(var verbSymbol, endpoint.EmitterContext.HttpMethod) = endpoint.HttpMethod switch 56_ => throw new ArgumentException($"Received unexpected HTTP method: {endpoint.HttpMethod}")