10 references to HttpMethodMetadata
Microsoft.AspNetCore.Routing (1)
HttpMethodMetadata.cs (1)
25: this(httpMethods, acceptCorsPreflight: false)
Microsoft.AspNetCore.Routing.Tests (9)
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
392metadata.Add(new HttpMethodMetadata(httpMethods ?? Array.Empty<string>(), acceptCorsPreflight));
Matching\HttpMethodMatcherPolicyTest.cs (3)
231CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)), 233CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>(), acceptCorsPreflight: true)), 339CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)),
MetadataTest.cs (1)
55var metadata = new HttpMethodMetadata(new[] { "GET", "POST" }, acceptCorsPreflight: true);
RouteEndpointBuilderTest.cs (4)
88Metadata = { new TestCorsMetadata(), new HttpMethodMetadata(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) } 108Metadata = { new HttpMethodMetadata(new[] { HttpMethods.Get }, acceptCorsPreflight: false), new TestCorsMetadata(), new HttpMethodMetadata(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) } 129Metadata = { new HttpMethodMetadata(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) }