23 references to Options
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsConstants.cs (1)
17public static readonly string PreflightHttpMethod = HttpMethods.Options;
Microsoft.AspNetCore.Hosting (2)
Internal\HostingMetrics.cs (2)
126KeyValuePair.Create(HttpMethods.Options, HttpMethods.Options),
Microsoft.AspNetCore.Http.Abstractions (2)
HttpMethods.cs (2)
113return Equals(Options, method); 175string _ when IsOptions(method) => Options,
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
HttpMethodslTests.cs (1)
21(new string[] { "OPTIONS", "Options", "options" }, HttpMethods.Options),
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
53method.Equals(HttpMethods.Options, StringComparison.Ordinal) ||
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1656method.Equals(HttpMethods.Options, StringComparison.Ordinal) ||
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
91method.Equals(HttpMethods.Options, StringComparison.Ordinal) ||
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyProviderTests.cs (1)
35HttpMethods.Options,
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingPolicyProviderTests.cs (1)
46HttpMethods.Options,
Microsoft.AspNetCore.Routing (4)
Matching\HttpMethodDestinationsLookup.cs (2)
55case 'o' when method.Equals(HttpMethods.Options, StringComparison.OrdinalIgnoreCase): 107'o' => (HttpMethods.Options, _optionsDestination),
Matching\HttpMethodMatcherPolicy.cs (1)
19internal static readonly string PreflightHttpMethod = HttpMethods.Options;
RouteEndpointDataSource.cs (1)
316method.Equals(HttpMethods.Options, StringComparison.Ordinal) ||
Microsoft.AspNetCore.Routing.FunctionalTests (1)
EndpointRoutingIntegrationTest.cs (1)
311var response = await request.SendAsync(HttpMethods.Options);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\HttpMethodMatcherPolicyBenchmark.cs (1)
11private static string[] TestHttpMethods = ["*", HttpMethods.Get, HttpMethods.Connect, HttpMethods.Delete, HttpMethods.Head, HttpMethods.Options, HttpMethods.Patch, HttpMethods.Put, HttpMethods.Post, HttpMethods.Trace, "MERGE"];
Matching\HttpMethodPolicyJumpTableBenchmark.cs (1)
39KeyValuePair.Create(HttpMethods.Options, 5),
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
243new[] { HttpMethods.Options },
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
255HttpMethods.Options,
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
255HttpMethods.Options,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\HttpUtilities.Generated.cs (1)
55_methodNames[(byte)HttpMethod.Options] = HttpMethods.Options;
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
255HttpMethods.Options,