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)
392
metadata.Add(new
HttpMethodMetadata
(httpMethods ?? Array.Empty<string>(), acceptCorsPreflight));
Matching\HttpMethodMatcherPolicyTest.cs (3)
231
CreateEndpoint("/", new
HttpMethodMetadata
(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)),
233
CreateEndpoint("/", new
HttpMethodMetadata
(Array.Empty<string>(), acceptCorsPreflight: true)),
339
CreateEndpoint("/", new
HttpMethodMetadata
(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)),
MetadataTest.cs (1)
55
var metadata = new
HttpMethodMetadata
(new[] { "GET", "POST" }, acceptCorsPreflight: true);
RouteEndpointBuilderTest.cs (4)
88
Metadata = { new TestCorsMetadata(), new
HttpMethodMetadata
(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) }
108
Metadata = { new
HttpMethodMetadata
(new[] { HttpMethods.Get }, acceptCorsPreflight: false), new TestCorsMetadata(), new
HttpMethodMetadata
(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) }
129
Metadata = { new
HttpMethodMetadata
(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) }