1 write to HttpMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
26HttpMethod = GetHttpMethod(operation);
72 references to HttpMethod
Microsoft.AspNetCore.Http.Extensions.Tests (60)
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
589Assert.Equal("MapGet", endpointModel.HttpMethod); 608Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\CompileTimeCreationTests.Routes.cs (3)
22Assert.Equal("MapGet", endpointModel.HttpMethod); 45Assert.Equal("MapGet", endpointModel.HttpMethod); 71Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (30)
32Assert.Equal("MapGet", endpointModel.HttpMethod); 53Assert.Equal("MapGet", endpointModel.HttpMethod); 74Assert.Equal("MapGet", endpointModel.HttpMethod); 95Assert.Equal("MapGet", endpointModel.HttpMethod); 168Assert.Equal("MapGet", endpointModel.HttpMethod); 193Assert.Equal("MapGet", endpointModel.HttpMethod); 214Assert.Equal("MapGet", endpointModel.HttpMethod); 235Assert.Equal("MapGet", endpointModel.HttpMethod); 256Assert.Equal("MapGet", endpointModel.HttpMethod); 276Assert.Equal("MapGet", endpointModel.HttpMethod); 297Assert.Equal("MapGet", endpointModel.HttpMethod); 318Assert.Equal("MapGet", endpointModel.HttpMethod); 340Assert.Equal("MapGet", endpointModel.HttpMethod); 362Assert.Equal("MapGet", endpointModel.HttpMethod); 383Assert.Equal("MapGet", endpointModel.HttpMethod); 405Assert.Equal("MapGet", endpointModel.HttpMethod); 426Assert.Equal("MapGet", endpointModel.HttpMethod); 448Assert.Equal("MapGet", endpointModel.HttpMethod); 469Assert.Equal("MapGet", endpointModel.HttpMethod); 491Assert.Equal("MapGet", endpointModel.HttpMethod); 512Assert.Equal("MapGet", endpointModel.HttpMethod); 534Assert.Equal("MapGet", endpointModel.HttpMethod); 555Assert.Equal("MapGet", endpointModel.HttpMethod); 577Assert.Equal("MapGet", endpointModel.HttpMethod); 597Assert.Equal("MapPost", endpointModel.HttpMethod); 618Assert.Equal("MapPost", endpointModel.HttpMethod); 645Assert.Equal("MapMethods", endpointModel.HttpMethod); 672Assert.Equal("MapMethods", endpointModel.HttpMethod); 699Assert.Equal("MapMethods", endpointModel.HttpMethod); 726Assert.Equal("MapMethods", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.cs (7)
36Assert.Equal("MapGet", endpointModel.HttpMethod); 57Assert.Equal("MapGet", endpointModel.HttpMethod); 92Assert.Equal("MapGet", endpointModel.HttpMethod); 129Assert.Equal("MapGet", endpointModel.HttpMethod); 136Assert.Equal("MapGet", endpointModel.HttpMethod); 143Assert.Equal("MapGet", endpointModel.HttpMethod); 618Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
244Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (3)
93Assert.Equal("MapGet", endpointModel.HttpMethod); 117Assert.Equal("MapGet", endpointModel.HttpMethod); 171Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (11)
33Assert.Equal(httpMethod, endpointModel.HttpMethod); 58Assert.Equal("MapGet", endpointModel.HttpMethod); 80Assert.Equal("MapGet", endpointModel.HttpMethod); 114Assert.Equal("MapGet", endpointModel.HttpMethod); 138Assert.Equal("MapGet", endpointModel.HttpMethod); 165Assert.Equal("MapGet", endpointModel.HttpMethod); 190Assert.Equal("MapGet", endpointModel.HttpMethod); 218Assert.Equal("MapGet", endpointModel.HttpMethod); 240Assert.Equal("MapGet", endpointModel.HttpMethod); 246Assert.Equal("MapGet", endpointModel.HttpMethod); 992Assert.Equal("MapGet", endpointModel.HttpMethod);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (3)
166Assert.Equal("MapGet", endpointModel.HttpMethod); 189Assert.Equal("MapGet", endpointModel.HttpMethod); 230Assert.Equal("MapGet", endpointModel.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}")