133 references to Get
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\OpaqueRedirection.cs (1)
61routeEndpointBuidler.Metadata.Add(new HttpMethodMetadata([HttpMethods.Get]));
Builder\RazorComponentEndpointFactory.cs (1)
18private static readonly HttpMethodMetadata HttpMethodsMetadata = new([HttpMethods.Get, HttpMethods.Post]);
Microsoft.AspNetCore.Hosting (2)
Internal\HostingMetrics.cs (2)
124KeyValuePair.Create(HttpMethods.Get, HttpMethods.Get),
Microsoft.AspNetCore.Http.Abstractions (2)
HttpMethods.cs (2)
89return Equals(Get, method); 171string _ when IsGet(method) => Get,
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
HttpMethodslTests.cs (1)
15(new string[] { "GET", "Get", "get" }, HttpMethods.Get),
Microsoft.AspNetCore.Http.Results.Tests (35)
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
68httpContext.Request.Method = HttpMethods.Get; 108httpContext.Request.Method = HttpMethods.Get; 147httpContext.Request.Method = HttpMethods.Get; 181httpContext.Request.Method = HttpMethods.Get; 212httpContext.Request.Method = HttpMethods.Get; 243httpContext.Request.Method = HttpMethods.Get; 280httpContext.Request.Method = HttpMethods.Get; 314httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
46httpContext.Request.Method = HttpMethods.Get; 89httpContext.Request.Method = HttpMethods.Get; 130httpContext.Request.Method = HttpMethods.Get; 167httpContext.Request.Method = HttpMethods.Get; 200httpContext.Request.Method = HttpMethods.Get; 233httpContext.Request.Method = HttpMethods.Get; 272httpContext.Request.Method = HttpMethods.Get; 308httpContext.Request.Method = HttpMethods.Get; 349httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
45httpContext.Request.Method = HttpMethods.Get; 78httpContext.Request.Method = HttpMethods.Get; 110httpContext.Request.Method = HttpMethods.Get; 137httpContext.Request.Method = HttpMethods.Get; 165httpContext.Request.Method = HttpMethods.Get; 191httpContext.Request.Method = HttpMethods.Get; 220httpContext.Request.Method = HttpMethods.Get; 247httpContext.Request.Method = HttpMethods.Get; 301httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
57httpContext.Request.Method = HttpMethods.Get; 96httpContext.Request.Method = HttpMethods.Get; 133httpContext.Request.Method = HttpMethods.Get; 166httpContext.Request.Method = HttpMethods.Get; 200httpContext.Request.Method = HttpMethods.Get; 233httpContext.Request.Method = HttpMethods.Get; 270httpContext.Request.Method = HttpMethods.Get; 301httpContext.Request.Method = HttpMethods.Get; 336httpContext.Request.Method = HttpMethods.Get;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
50return method.Equals(HttpMethods.Get, StringComparison.Ordinal) ||
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1653method.Equals(HttpMethods.Get, StringComparison.Ordinal) ||
Microsoft.AspNetCore.Mvc.Core.Test (38)
FileResultHelperTest.cs (3)
248httpContext.Request.Method = HttpMethods.Get; 326httpContext.Request.Method = HttpMethods.Get; 362httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
68httpContext.Request.Method = HttpMethods.Get; 108httpContext.Request.Method = HttpMethods.Get; 147httpContext.Request.Method = HttpMethods.Get; 181httpContext.Request.Method = HttpMethods.Get; 212httpContext.Request.Method = HttpMethods.Get; 243httpContext.Request.Method = HttpMethods.Get; 280httpContext.Request.Method = HttpMethods.Get; 314httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
46httpContext.Request.Method = HttpMethods.Get; 89httpContext.Request.Method = HttpMethods.Get; 130httpContext.Request.Method = HttpMethods.Get; 167httpContext.Request.Method = HttpMethods.Get; 200httpContext.Request.Method = HttpMethods.Get; 233httpContext.Request.Method = HttpMethods.Get; 272httpContext.Request.Method = HttpMethods.Get; 308httpContext.Request.Method = HttpMethods.Get; 349httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
45httpContext.Request.Method = HttpMethods.Get; 78httpContext.Request.Method = HttpMethods.Get; 110httpContext.Request.Method = HttpMethods.Get; 137httpContext.Request.Method = HttpMethods.Get; 165httpContext.Request.Method = HttpMethods.Get; 191httpContext.Request.Method = HttpMethods.Get; 220httpContext.Request.Method = HttpMethods.Get; 247httpContext.Request.Method = HttpMethods.Get; 301httpContext.Request.Method = HttpMethods.Get;
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
57httpContext.Request.Method = HttpMethods.Get; 96httpContext.Request.Method = HttpMethods.Get; 133httpContext.Request.Method = HttpMethods.Get; 166httpContext.Request.Method = HttpMethods.Get; 200httpContext.Request.Method = HttpMethods.Get; 233httpContext.Request.Method = HttpMethods.Get; 270httpContext.Request.Method = HttpMethods.Get; 301httpContext.Request.Method = HttpMethods.Get; 336httpContext.Request.Method = HttpMethods.Get;
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
166return HttpMethods.IsHead(context.HttpContext.Request.Method) ? HttpMethods.Get : null;
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
88return method.Equals(HttpMethods.Get, StringComparison.Ordinal) ||
Microsoft.AspNetCore.OutputCaching.Tests (8)
OutputCacheKeyProviderTests.cs (4)
56context.HttpContext.Request.Method = HttpMethods.Get; 59Assert.Equal($"{HttpMethods.Get}{KeyDelimiter}{KeyDelimiter}/PATH", cacheKeyProvider.CreateStorageKey(context)); 70context.HttpContext.Request.Method = HttpMethods.Get; 73Assert.Equal($"{HttpMethods.Get}{KeyDelimiter}{KeyDelimiter}/Path", cacheKeyProvider.CreateStorageKey(context));
OutputCachePolicyProviderTests.cs (4)
18HttpMethods.Get, 81context.HttpContext.Request.Method = HttpMethods.Get; 97context.HttpContext.Request.Method = HttpMethods.Get; 115context.HttpContext.Request.Method = HttpMethods.Get;
Microsoft.AspNetCore.Owin.Tests (2)
OwinFeatureCollectionTests.cs (2)
54requestFeature.Method = HttpMethods.Get; 59Assert.Equal(HttpMethods.Get, Get<string>(env, "owin.RequestMethod"));
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
ResponseCachingBenchmark.cs (2)
57context.Request.Method = HttpMethods.Get; 75context.Request.Method = HttpMethods.Get;
Microsoft.AspNetCore.ResponseCaching.Tests (11)
ResponseCachingKeyProviderTests.cs (4)
36context.HttpContext.Request.Method = HttpMethods.Get; 39Assert.Equal($"{HttpMethods.Get}{KeyDelimiter}{KeyDelimiter}/PATH", cacheKeyProvider.CreateBaseKey(context)); 50context.HttpContext.Request.Method = HttpMethods.Get; 53Assert.Equal($"{HttpMethods.Get}{KeyDelimiter}{KeyDelimiter}/Path", cacheKeyProvider.CreateBaseKey(context));
ResponseCachingPolicyProviderTests.cs (7)
18HttpMethods.Get, 72context.HttpContext.Request.Method = HttpMethods.Get; 86context.HttpContext.Request.Method = HttpMethods.Get; 101context.HttpContext.Request.Method = HttpMethods.Get; 118context.HttpContext.Request.Method = HttpMethods.Get; 132context.HttpContext.Request.Method = HttpMethods.Get; 145context.HttpContext.Request.Method = HttpMethods.Get;
Microsoft.AspNetCore.Rewrite.Tests (3)
IISUrlRewrite\ServerVariableTests.cs (1)
138context.Request.Method = HttpMethods.Get;
PatternSegments\RequestMethodSegmentTests.cs (2)
17context.HttpContext.Request.Method = HttpMethods.Get; 22Assert.Equal(HttpMethods.Get, results);
Microsoft.AspNetCore.Routing (7)
Builder\EndpointRouteBuilderExtensions.cs (1)
22private static readonly string[] GetVerb = new[] { HttpMethods.Get };
Matching\HttpMethodDestinationsLookup.cs (2)
49case 'g' when method.Equals(HttpMethods.Get, StringComparison.OrdinalIgnoreCase): 105'g' => (HttpMethods.Get, _getDestination),
RequestDelegateRouteBuilderExtensions.cs (3)
106return builder.MapVerb(HttpMethods.Get, template, handler); 119return builder.MapMiddlewareVerb(HttpMethods.Get, template, action); 135return builder.MapVerb(HttpMethods.Get, template, handler);
RouteEndpointDataSource.cs (1)
313method.Equals(HttpMethods.Get, StringComparison.Ordinal) ||
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
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 (2)
26_singleEntryJumptable = new HttpMethodSingleEntryPolicyJumpTable(0, HttpMethods.Get, -1, supportsCorsPreflight: false, -1, 2); 38KeyValuePair.Create(HttpMethods.Get, 4),
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
241new[] { HttpMethods.Get },
RouteEndpointBuilderTest.cs (1)
108Metadata = { new HttpMethodMetadata(new[] { HttpMethods.Get }, acceptCorsPreflight: false), new TestCorsMetadata(), new HttpMethodMetadata(new[] { HttpMethods.Delete }, acceptCorsPreflight: false) }
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
256HttpMethods.Get,
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
256HttpMethods.Get,
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http2\Http2Stream.cs (2)
700HttpRequestHeaders.HeaderMethod = HttpMethods.Get; 702_methodText = HttpMethods.Get;
Internal\Http3\Http3Stream.cs (2)
258HttpRequestHeaders.HeaderMethod = HttpMethods.Get; 260_methodText = HttpMethods.Get;
Internal\Infrastructure\HttpUtilities.Generated.cs (1)
53_methodNames[(byte)HttpMethod.Get] = HttpMethods.Get;
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
256HttpMethods.Get,
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointFactory.cs (1)
17private static readonly HttpMethodMetadata _supportedMethods = new([HttpMethods.Get, HttpMethods.Head]);
Microsoft.AspNetCore.StaticFiles (1)
StaticFilesEndpointRouteBuilderExtensions.cs (1)
20private static readonly string[] _supportedHttpMethods = new[] { HttpMethods.Get, HttpMethods.Head };
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
41request.Method = HttpMethods.Get;