544 references to Get
Aspire.Dashboard.Tests (4)
Integration\ResponseCompressionTests.cs (2)
26var request = new HttpRequestMessage(HttpMethod.Get, DashboardUrls.StructuredLogsBasePath); 48var request = new HttpRequestMessage(HttpMethod.Get, path);
Integration\StartupTests.cs (2)
298var request = new HttpRequestMessage(HttpMethod.Get, "/"); 399var request = new HttpRequestMessage(HttpMethod.Get, "/");
Aspire.Hosting (1)
Dcp\DcpKubernetesClient.cs (1)
71var httpResponse = await SendRequest<object?>(url, HttpMethod.Get, customHeaders : null, body: null, cancellationToken).ConfigureAwait(false);
CodeGenerator (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
15[HttpMethod.Get] = 17,
DaprServiceA (1)
Program.cs (1)
29var forecasts = await client.InvokeMethodAsync<WeatherForecast[]>(HttpMethod.Get, "serviceb", "weatherforecast");
Diagnostics.FunctionalTests (13)
DatabaseErrorPageSampleTest.cs (1)
25var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/");
DeveloperExceptionPageSampleTest.cs (2)
26var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/"); 41var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/");
ExceptionHandlerSampleTest.cs (1)
22var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/throw");
MiddlewareAnalysisSampleTest.cs (1)
22var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/");
ProblemDetailsExceptionHandlerSampleTest.cs (2)
26var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/throw"); 43var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/throw2/conflict");
StatusCodeSampleTest.cs (5)
27var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/errors/417"); 43var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost/?statuscode={httpStatusCode}"); 60var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost/?statuscode={httpStatusCode}"); 81var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost?statuscode={httpStatusCode}"); 99var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost?statuscode={httpStatusCode}");
WelcomePageSampleTest.cs (1)
21var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/");
HttpStress (4)
Program.cs (4)
122using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri + path) { Version = httpVersion }) 174using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri) { Version = httpVersion }) 203using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri + "/headers") { Version = httpVersion }) 215using (var req = new HttpRequestMessage(HttpMethod.Get, serverUri) { Version = httpVersion })
IIS.FunctionalTests (6)
Http3Tests.cs (1)
67var request = new HttpRequestMessage(HttpMethod.Get, address);
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
60var request = new HttpRequestMessage(HttpMethod.Get, "/Auth");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
48var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{deploymentResult.ApplicationBaseUri}Latin1"); 66var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{deploymentResult.ApplicationBaseUri}InvalidCharacter");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
127var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 145var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData");
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
60var request = new HttpRequestMessage(HttpMethod.Get, "/Auth");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
48var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{deploymentResult.ApplicationBaseUri}Latin1"); 66var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{deploymentResult.ApplicationBaseUri}InvalidCharacter");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
127var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 145var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData");
Interop.FunctionalTests (41)
Http2\Http2RequestTests.cs (4)
126var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://[::1]:{host.GetPort()}/"); 183var request1 = new HttpRequestMessage(HttpMethod.Get, $"http://127.0.0.1:{host.GetPort()}/"); 209var request = new HttpRequestMessage(HttpMethod.Get, $"http://127.0.0.1:{host.GetPort()}/"); 292var request = new HttpRequestMessage(HttpMethod.Get, $"http://127.0.0.1:{host.GetPort()}/");
Http3\Http3RequestTests.cs (26)
89var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 148var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 250var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 619var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 675var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 815var request = new HttpRequestMessage(HttpMethod.Get, address); 851var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 862var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 911var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 924var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 940var request3 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1316var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1422var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1432var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1488var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1499var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1541var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1559var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1603var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 1663var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 1719var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 1780var responseTask1 = client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/1"), CancellationToken.None); 1830var response3 = await client.SendAsync(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/3"), CancellationToken.None); 1885var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 1962var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 2192var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
Http3\Http3TlsTests.cs (7)
56var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 103var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 145var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 194var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 244var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 322var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 473var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/");
HttpClientHttp2InteropTests.cs (4)
1056var request = CreateRequestMessage(HttpMethod.Get, url, content: null); 1165var request = CreateRequestMessage(HttpMethod.Get, url, content: null); 1364var request = CreateRequestMessage(HttpMethod.Get, url, content: null); 1566var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
47var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
43var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1057var requestMessage = new HttpRequestMessage(HttpMethod.Get, userInfoEndpoint);
Microsoft.AspNetCore.Authentication.Test (14)
CookieTests.cs (1)
1905var request = new HttpRequestMessage(HttpMethod.Get, uri);
JwtBearerTests.cs (2)
909var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1250var request = new HttpRequestMessage(HttpMethod.Get, uri);
JwtBearerTests_Handler.cs (2)
854var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1317var request = new HttpRequestMessage(HttpMethod.Get, uri);
OpenIdConnect\TestServerExtensions.cs (1)
19return SendAsync(server, new HttpRequestMessage(HttpMethod.Get, url), cookieHeader);
TestExtensions.cs (1)
20var request = new HttpRequestMessage(HttpMethod.Get, uri);
TwitterTests.cs (3)
218var request = new HttpRequestMessage(HttpMethod.Get, "/signin-twitter?denied=ABCDEFG"); 268var request = new HttpRequestMessage(HttpMethod.Get, "/signin-twitter?denied=ABCDEFG"); 375var request = new HttpRequestMessage(HttpMethod.Get, "/signin-twitter?denied=ABCDEFG");
WsFederation\WsFederationTest.cs (2)
133request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location); 160var request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location);
WsFederation\WsFederationTest_Handler.cs (2)
131request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location); 158var request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
324var response = await ExecuteRequestAsync("https://api.twitter.com/1.1/account/verify_credentials.json", HttpMethod.Get, accessToken, queryParameters: new Dictionary<string, string>() { { "include_email", "true" } });
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
17var request = new HttpRequestMessage(HttpMethod.Get, uri);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (8)
Logging\AcceptanceTests.cs (3)
356using var httpMessage = new HttpRequestMessage(HttpMethod.Get, "/"); 384Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 582Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
Logging\AcceptanceTests.Mvc.cs (5)
84Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 122Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 174Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 209Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString()); 252Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
Microsoft.AspNetCore.Diagnostics.Tests (4)
DeveloperExceptionPageMiddlewareTest.cs (3)
62var request = new HttpRequestMessage(HttpMethod.Get, "/path"); 115var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/test/1"); 174var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/test/1");
ExceptionHandlerMiddlewareTest.cs (1)
68var request = new HttpRequestMessage(HttpMethod.Get, "/path");
Microsoft.AspNetCore.Http.Connections.Client (3)
Internal\LongPollingTransport.cs (2)
54var request = new HttpRequestMessage(HttpMethod.Get, url); 154var request = new HttpRequestMessage(HttpMethod.Get, pollUrl);
Internal\ServerSentEventsTransport.cs (1)
55var request = new HttpRequestMessage(HttpMethod.Get, url);
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1731var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseonly")); 1746var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseandrequest")); 1761var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_restrictedheaders")); 1776var request = new HttpRequestMessage(HttpMethod.Get, "/attr_restrictedsize") { Content = new ReadOnlyMemoryContent("from request"u8.ToArray()) }; 1802var request = new HttpRequestMessage(HttpMethod.Get, "/attr_responseandrequest"); 1821var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseonly")); 1836var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseandrequest")); 1851var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_restrictedheaders")); 1866var request = new HttpRequestMessage(HttpMethod.Get, "/ext_restrictedsize") { Content = new ReadOnlyMemoryContent("from request"u8.ToArray()) }; 1892var request = new HttpRequestMessage(HttpMethod.Get, "/ext_responseandrequest"); 1938var request = new HttpRequestMessage(HttpMethod.Get, "/");
Microsoft.AspNetCore.HttpOverrides.Tests (1)
HttpMethodOverrideMiddlewareTest.cs (1)
100var req = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.HttpsPolicy.Tests (19)
HstsMiddlewareTests.cs (8)
66var request = new HttpRequestMessage(HttpMethod.Get, ""); 112var request = new HttpRequestMessage(HttpMethod.Get, ""); 158var request = new HttpRequestMessage(HttpMethod.Get, ""); 203var request = new HttpRequestMessage(HttpMethod.Get, ""); 258var request = new HttpRequestMessage(HttpMethod.Get, ""); 313var request = new HttpRequestMessage(HttpMethod.Get, ""); 360var request = new HttpRequestMessage(HttpMethod.Get, ""); 406var request = new HttpRequestMessage(HttpMethod.Get, "");
HttpsPolicyTests.cs (2)
65var request = new HttpRequestMessage(HttpMethod.Get, ""); 74request = new HttpRequestMessage(HttpMethod.Get, expectedUrl);
HttpsRedirectionMiddlewareTests.cs (9)
51var request = new HttpRequestMessage(HttpMethod.Get, ""); 106var request = new HttpRequestMessage(HttpMethod.Get, ""); 162var request = new HttpRequestMessage(HttpMethod.Get, ""); 224var request = new HttpRequestMessage(HttpMethod.Get, ""); 264var request = new HttpRequestMessage(HttpMethod.Get, ""); 310var request = new HttpRequestMessage(HttpMethod.Get, ""); 352var request = new HttpRequestMessage(HttpMethod.Get, ""); 400var request = new HttpRequestMessage(HttpMethod.Get, ""); 444var request = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
430var request = new HttpRequestMessage(HttpMethod.Get, uri);
Microsoft.AspNetCore.Localization.FunctionalTests (1)
LocalizationSampleTest.cs (1)
32var request = new HttpRequestMessage(HttpMethod.Get, "My/Resources");
Microsoft.AspNetCore.Mvc.FunctionalTests (188)
ApplicationModelTest.cs (1)
126var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Home/GetHelloWorld");
AsyncEnumerableTestBase.cs (1)
75var request = new HttpRequestMessage(HttpMethod.Get, "asyncenumerable/getallprojects");
AuthMiddlewareAndFilterTestBase.cs (20)
56var request = new HttpRequestMessage(HttpMethod.Get, action); 74var request = new HttpRequestMessage(HttpMethod.Get, action); 81request = new HttpRequestMessage(HttpMethod.Get, action); 120var request = new HttpRequestMessage(HttpMethod.Get, "PagesHome"); 130var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 136request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 145var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/AllowAnonymous"); 149request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 155request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 164var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 170request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 179var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/AllowAnonymous"); 183request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 189request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 198var request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 204request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Cookie"); 209request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 216request = new HttpRequestMessage(HttpMethod.Get, "/Authorized/Api"); 251var request = new HttpRequestMessage(HttpMethod.Get, url); 258request = new HttpRequestMessage(HttpMethod.Get, url);
AuthMiddlewareUsingRequireAuthTest.cs (2)
47var request = new HttpRequestMessage(HttpMethod.Get, action); 66var request = new HttpRequestMessage(HttpMethod.Get, action);
ContentNegotiationTest.cs (11)
109var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ContentNegotiation/UserInfo_ProducesWithTypeOnly"); 127HttpMethod.Get, 152HttpMethod.Get, 346var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ContentNegotiation/UserInfo"); 367var request = new HttpRequestMessage(HttpMethod.Get, "FallbackOnTypeBasedMatch/ReturnString"); 385var request = new HttpRequestMessage(HttpMethod.Get, targetUri); 420var request = new HttpRequestMessage(HttpMethod.Get, targetUri); 435var request = new HttpRequestMessage(HttpMethod.Get, targetUri); 450var request = new HttpRequestMessage(HttpMethod.Get, targetUri); 489var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ProducesWithMediaTypeSuffixesController/ContactInfo"); 507var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ProducesWithMediaTypeSuffixesController/ContactInfo");
ControllerFromServicesTests.cs (1)
35var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/constructorinjection?value=14");
CustomValueProviderTest.cs (4)
43var request = new HttpRequestMessage(HttpMethod.Get, url); 60var request = new HttpRequestMessage(HttpMethod.Get, url); 77var request = new HttpRequestMessage(HttpMethod.Get, url); 94var request = new HttpRequestMessage(HttpMethod.Get, url);
DoNotRespectBrowserAcceptHeaderTests.cs (1)
148var request = new HttpRequestMessage(HttpMethod.Get, url);
FileResultTests.cs (23)
59var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk"); 81var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk"); 101var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk"); 123var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDisk_WithLastModifiedAndEtag"); 145var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 165var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 227var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 247var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 346var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream"); 368var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream"); 388var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStream"); 448var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag"); 468var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag"); 547var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData"); 569var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData"); 589var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryData"); 652var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 672var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 760var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName"); 802var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName_WithEtag"); 825var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName_WithEtag"); 850var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName"); 873var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
GlobalAuthorizationFilterTestBase.cs (1)
72var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Administration/EitherCookie");
HtmlGenerationTest.cs (3)
350var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Customer/HtmlGeneration_Customer/CustomerWithRecords"); 504var request = new HttpRequestMessage(HttpMethod.Get, "/catalog/cart?correlationid=2"); 806var request = new HttpRequestMessage(HttpMethod.Get, url);
JsonResultWithNewtonsoftJsonTest.cs (6)
43var request = new HttpRequestMessage(HttpMethod.Get, url); 64var request = new HttpRequestMessage(HttpMethod.Get, url); 83var request = new HttpRequestMessage(HttpMethod.Get, url); 101var request = new HttpRequestMessage(HttpMethod.Get, url); 118var request = new HttpRequestMessage(HttpMethod.Get, url); 134var request = new HttpRequestMessage(HttpMethod.Get, url);
JsonResultWithSystemTextJsonTest.cs (6)
43var request = new HttpRequestMessage(HttpMethod.Get, url); 64var request = new HttpRequestMessage(HttpMethod.Get, url); 83var request = new HttpRequestMessage(HttpMethod.Get, url); 101var request = new HttpRequestMessage(HttpMethod.Get, url); 118var request = new HttpRequestMessage(HttpMethod.Get, url); 134var request = new HttpRequestMessage(HttpMethod.Get, url);
KeyedServicesTests.cs (6)
33var okRequest = new HttpRequestMessage(HttpMethod.Get, "/services/GetOk"); 34var notokRequest = new HttpRequestMessage(HttpMethod.Get, "/services/GetNotOk"); 51var request = new HttpRequestMessage(HttpMethod.Get, "/services/GetBoth"); 65var request = new HttpRequestMessage(HttpMethod.Get, "/services/GetKeyNull"); 79var request = new HttpRequestMessage(HttpMethod.Get, "/services/GetOptionalNotRegistered"); 93var request = new HttpRequestMessage(HttpMethod.Get, "/services/GetRequiredNotRegistered");
RazorPagesTest.cs (23)
272var routeRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/RouteData/pizza"); 285var routeRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/RouteData/5"); 301var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/PathSet"); 317var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TagHelpers"); 333var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/NoPage"); 346var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Pages/HandlerWithParameter"); 362var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorld"); 378var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithRoute/Some/Path/route"); 394var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithHandler?message=handler"); 410var getRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithPageModelHandler?message=message"); 466var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/PageWithoutContent/No/Content/Path"); 482var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/OnGetView"); 499var request = new HttpRequestMessage(HttpMethod.Get, url); 508request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location); 524var request = new HttpRequestMessage(HttpMethod.Get, url); 533request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location); 549var request = new HttpRequestMessage(HttpMethod.Get, url); 558request = new HttpRequestMessage(HttpMethod.Get, response.Headers.Location); 573var getRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty"); 594request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty"); 867var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/PageWithPropertyAndArgumentBinding?id=11") 923var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/BindPropertyWithGet?value=11"); 1471var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithOptionsHandler");
RequestServicesTestBase.cs (4)
53var request = new HttpRequestMessage(HttpMethod.Get, url); 76var request = new HttpRequestMessage(HttpMethod.Get, url); 96var request1 = new HttpRequestMessage(HttpMethod.Get, url); 105var request2 = new HttpRequestMessage(HttpMethod.Get, url);
RespectBrowserAcceptHeaderTests.cs (2)
43var request = new HttpRequestMessage(HttpMethod.Get, "RespectBrowserAcceptHeader/ReturnString"); 62var request = new HttpRequestMessage(HttpMethod.Get, "RespectBrowserAcceptHeader/ReturnString");
RoutingAcrossPipelineBranchesTest.cs (12)
42var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s"); 43var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/Index/c/literal"); 44var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d"); 77var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s" + linkQuery); 78var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/Index/c/literal" + linkQuery); 79var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d" + linkQuery); 111var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/literal/Branches/Index/s" + linkQuery + "&link_common=c&link_subdir"); 112var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "Branches/literal/Index/d" + linkQuery + "&link_subdir=s"); 140var commonRequest = new HttpRequestMessage(HttpMethod.Get, "common/literal/Branches/Index/s"); 141var subdirRequest = new HttpRequestMessage(HttpMethod.Get, "subdir/Branches/Index/c/literal"); 142var defaultRequest = new HttpRequestMessage(HttpMethod.Get, "common/Branches/literal/Index/d"); 163var request = new HttpRequestMessage(HttpMethod.Get, "dynamicattributeorder/dynamic/route/rest");
RoutingDynamicOrderTest.cs (6)
44var request = new HttpRequestMessage(HttpMethod.Get, url); 66var request = new HttpRequestMessage(HttpMethod.Get, url); 89var request = new HttpRequestMessage(HttpMethod.Get, url); 111var request = new HttpRequestMessage(HttpMethod.Get, url); 133var request = new HttpRequestMessage(HttpMethod.Get, url); 155var request = new HttpRequestMessage(HttpMethod.Get, url);
RoutingDynamicTest.cs (6)
40var request = new HttpRequestMessage(HttpMethod.Get, url); 55var request = new HttpRequestMessage(HttpMethod.Get, url); 70var request = new HttpRequestMessage(HttpMethod.Get, url); 86var request = new HttpRequestMessage(HttpMethod.Get, url); 116var request = new HttpRequestMessage(HttpMethod.Get, url); 132var request = new HttpRequestMessage(HttpMethod.Get, url);
RoutingFallbackTest.cs (4)
41var request = new HttpRequestMessage(HttpMethod.Get, url); 56var request = new HttpRequestMessage(HttpMethod.Get, url); 72var request = new HttpRequestMessage(HttpMethod.Get, url); 120var request = new HttpRequestMessage(HttpMethod.Get, url);
RoutingTestsBase.cs (1)
748var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Store/Shop/Orders");
SerializableErrorTests.cs (1)
50var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SerializableError/ModelStateErrors");
TagHelperComponentTagHelperTest.cs (3)
37var request = new HttpRequestMessage(HttpMethod.Get, url); 57var request = new HttpRequestMessage(HttpMethod.Get, url); 77var request = new HttpRequestMessage(HttpMethod.Get, url);
TagHelpersFromServicesTest.cs (1)
34var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/another/inservicestaghelper");
TempDataInCookiesUsingCookieConsentTest.cs (1)
94var request = new HttpRequestMessage(HttpMethod.Get, path);
TempDataPropertyTest.cs (1)
162var request = new HttpRequestMessage(HttpMethod.Get, path);
TempDataTestBase.cs (1)
264var request = new HttpRequestMessage(HttpMethod.Get, path);
TestingInfrastructureTests.cs (5)
100var request = new HttpRequestMessage(HttpMethod.Get, "Testing/RedirectHandler/Headers"); 116var request = new HttpRequestMessage(HttpMethod.Get, "Testing/RedirectHandler/Redirect303"); 130var request = new HttpRequestMessage(HttpMethod.Get, "Testing/RedirectHandler/Relative/"); 143var request = new HttpRequestMessage(HttpMethod.Get, "Testing/RedirectHandler/Redirect303"); 234var request = new HttpRequestMessage(HttpMethod.Get, "Testing/RedirectHandler/RedirectToAuthorized");
VersioningTestsBase.cs (12)
45var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/api/Addresses?version=" + version); 68var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/api/Addresses/All" + query); 89var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets"); 110var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets?version=2"); 129var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets/5"); 148var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Tickets/5?version=2"); 269var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version); 291var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version); 417var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url); 438var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url); 483var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url + query); 543var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost" + path);
ViewComponentFromServicesTests.cs (1)
35var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/another/InServicesViewComponent");
ViewEngineTests.cs (2)
163var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TemplateExpander"); 307var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TemplateExpander/ViewWithLayout");
XmlDataContractSerializerFormattersWrappingTest.cs (8)
44var request = new HttpRequestMessage(HttpMethod.Get, url); 68var request = new HttpRequestMessage(HttpMethod.Get, url); 92var request = new HttpRequestMessage(HttpMethod.Get, url); 115var request = new HttpRequestMessage(HttpMethod.Get, url); 138var request = new HttpRequestMessage(HttpMethod.Get, url); 163var request = new HttpRequestMessage(HttpMethod.Get, url); 186var request = new HttpRequestMessage(HttpMethod.Get, url); 207var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/IEnumerable/SerializableErrors");
XmlSerializerFormattersWrappingTest.cs (8)
43var request = new HttpRequestMessage(HttpMethod.Get, url); 64var request = new HttpRequestMessage(HttpMethod.Get, url); 85var request = new HttpRequestMessage(HttpMethod.Get, url); 105var request = new HttpRequestMessage(HttpMethod.Get, url); 125var request = new HttpRequestMessage(HttpMethod.Get, url); 147var request = new HttpRequestMessage(HttpMethod.Get, url); 167var request = new HttpRequestMessage(HttpMethod.Get, url); 185var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/IEnumerable/SerializableErrors");
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
152redirect.Method = HttpMethod.Get;
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheTests.cs (4)
92var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 111var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 962() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""))); 1003var resp = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""));
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
98var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 119var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""));
Microsoft.AspNetCore.ResponseCompression.Tests (16)
ResponseCompressionMiddlewareTest.cs (16)
177var request = new HttpRequestMessage(HttpMethod.Get, ""); 335var request = new HttpRequestMessage(HttpMethod.Get, ""); 474var request = new HttpRequestMessage(HttpMethod.Get, ""); 537var request = new HttpRequestMessage(HttpMethod.Get, ""); 600var request = new HttpRequestMessage(HttpMethod.Get, ""); 653var request = new HttpRequestMessage(HttpMethod.Get, ""); 698var request = new HttpRequestMessage(HttpMethod.Get, ""); 750var request = new HttpRequestMessage(HttpMethod.Get, ""); 803var request = new HttpRequestMessage(HttpMethod.Get, ""); 873var request = new HttpRequestMessage(HttpMethod.Get, ""); 937var request = new HttpRequestMessage(HttpMethod.Get, ""); 1001var request = new HttpRequestMessage(HttpMethod.Get, ""); 1062var request = new HttpRequestMessage(HttpMethod.Get, ""); 1112var request = new HttpRequestMessage(HttpMethod.Get, ""); 1162var request = new HttpRequestMessage(HttpMethod.Get, ""); 1212var request = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.Routing.FunctionalTests (15)
EndpointRoutingSampleTest.cs (1)
36var message = new HttpRequestMessage(HttpMethod.Get, $"{branch}/api/get/5");
HostMatchingTests.cs (5)
32var request = new HttpRequestMessage(HttpMethod.Get, "api/DomainWildcard"); 50var request = new HttpRequestMessage(HttpMethod.Get, "api/DomainWildcard"); 68var request = new HttpRequestMessage(HttpMethod.Get, "api/DomainWildcard"); 86var request = new HttpRequestMessage(HttpMethod.Get, "api/DomainWildcard"); 104var request = new HttpRequestMessage(HttpMethod.Get, "api/DomainWildcard");
MapFallbackTest.cs (5)
25var request = new HttpRequestMessage(HttpMethod.Get, "helloworld"); 42var request = new HttpRequestMessage(HttpMethod.Get, path); 59var request = new HttpRequestMessage(HttpMethod.Get, path); 76var request = new HttpRequestMessage(HttpMethod.Get, path); 93var request = new HttpRequestMessage(HttpMethod.Get, path);
RouterSampleTest.cs (3)
34var message = new HttpRequestMessage(HttpMethod.Get, $"{branch}/api/get/5"); 48var message = new HttpRequestMessage(HttpMethod.Get, "api/get/5"); 62var message = new HttpRequestMessage(HttpMethod.Get, "api/middleware");
WebHostBuilderExtensionsTest.cs (1)
25new HttpRequestMessage(HttpMethod.Get, "greeting/James"),
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Http3Tests.cs (1)
75var request = new HttpRequestMessage(HttpMethod.Get, address);
Listener\ResponseHeaderTests.cs (1)
342var request = new HttpRequestMessage(HttpMethod.Get, uri);
ResponseHeaderTests.cs (2)
172HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, address); 199HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, address);
Microsoft.AspNetCore.Server.IISIntegration.Tests (7)
IISMiddlewareTests.cs (7)
54var req = new HttpRequestMessage(HttpMethod.Get, ""); 92var req = new HttpRequestMessage(HttpMethod.Get, ""); 153HttpMethod.Get, 383var request = new HttpRequestMessage(HttpMethod.Get, "/PathBase/Path"); 424var req = new HttpRequestMessage(HttpMethod.Get, ""); 481var req = new HttpRequestMessage(HttpMethod.Get, ""); 526var req = new HttpRequestMessage(HttpMethod.Get, "");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
15[HttpMethod.Get] = 17,
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
79var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 246var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 260var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 317var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 330var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 352var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{http3Port}/"); 366var request2 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{http1Port}/");
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
15[HttpMethod.Get] = 17,
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
2980if (request.Method == HttpMethod.Get)
Microsoft.AspNetCore.SignalR.Client.Tests (5)
LongPollingTransportTests.cs (2)
472else if (request.Method == HttpMethod.Get) 540else if (request.Method == HttpMethod.Get)
ResponseUtils.cs (2)
42return request.Method == HttpMethod.Get && 55return request.Method == HttpMethod.Get && request.Headers.Accept.Any(h => h.MediaType == "text/event-stream");
TestHttpMessageHandler.cs (1)
151public void OnGet(string pathAndQuery, Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> handler) => OnRequest(HttpMethod.Get, pathAndQuery, handler);
Microsoft.AspNetCore.StaticAssets.Tests (4)
StaticAssetsIntegrationTests.cs (4)
438var message = new HttpRequestMessage(HttpMethod.Get, "/sample.txt"); 1002var req1 = new HttpRequestMessage(HttpMethod.Get, "http://localhost/sample.txt"); 1006var req2 = new HttpRequestMessage(HttpMethod.Get, "http://localhost/sample.txt"); 1021new [] { HttpMethod.Get },
Microsoft.AspNetCore.StaticFiles.Tests (15)
CacheHeaderTests.cs (1)
432new [] { HttpMethod.Get },
RangeHeaderTests.cs (14)
23var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 65var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 82var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 99var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 135var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 171var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 210var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 218req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 270var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 291var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/SingleByte.txt"); 312var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/Empty.txt"); 344var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 379var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 422var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt");
Microsoft.AspNetCore.TestHost (2)
RequestBuilder.cs (2)
23_req = new HttpRequestMessage(HttpMethod.Get, path); 84_req.Method = HttpMethod.Get;
Microsoft.AspNetCore.TestHost.Tests (5)
TestClientTests.cs (4)
850var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345"); 952var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345"); 978var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345"); 1005var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:12345");
TestServerTests.cs (1)
790var request = new HttpRequestMessage(HttpMethod.Get, uri);
Microsoft.AspNetCore.WebSockets.Tests (7)
WebSocketCompressionMiddlewareTests.cs (3)
34using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString())) 62using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString())) 96using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString()))
WebSocketMiddlewareTests.cs (4)
675using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString())) 708using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString())) 758using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString())) 831using (var request = new HttpRequestMessage(HttpMethod.Get, uri.ToString()))
Microsoft.Build.Tasks.UnitTests (8)
DownloadFile_Tests.cs (8)
41RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://largedownload/foo.txt") 70RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 104RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 149RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 222RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 296RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 332RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://success/foo.txt") 355RequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://unknown/")
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
34HttpRequestMessage getMessage = new HttpRequestMessage(HttpMethod.Get, $"_apis/git/repositories/{repoName}/commits?searchCriteria.ids={commit}");
Microsoft.DotNet.Helix.Sdk (4)
CheckAzurePipelinesTestResults.cs (4)
59HttpMethod.Get, 113HttpMethod.Get, 165HttpMethod.Get, 209HttpMethod.Get,
Microsoft.DotNet.Helix.Sdk.Tests (8)
FindDotNetCliPackageTests.cs (8)
27RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 37RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"), 75RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"), 125RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"), 178RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 188RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"), 244RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 254RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"),
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolPromotionHelper.cs (1)
200using HttpRequestMessage statusRequest = new(HttpMethod.Get, requestSpecificEndpoint)
SymbolUploadHelperFactory.cs (1)
150using HttpRequestMessage getToolRequest = new(HttpMethod.Get, downloadUri) { Headers = { Accept = { new ("application/zip") } } };
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Languages\csharp\CSharp.cs (1)
211if (method == HttpMethod.Delete || method == HttpMethod.Get || method == HttpMethod.Head ||
Modeler\ServiceClientModelFactory.cs (1)
221return HttpMethod.Get;
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpRequestBodyReader.cs (1)
49if (request.Content == null || request.Method == HttpMethod.Get)
Microsoft.Extensions.Http.Diagnostics.Tests (18)
Logging\AcceptanceTests.cs (15)
47Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", logRecord.Message); 80Assert.EndsWith($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", firstLogRecord.Message); 88Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.Redacted}", secondLogRecord.Message); 109Method = HttpMethod.Get, 164Method = HttpMethod.Get, 180Method = HttpMethod.Get, 245Method = HttpMethod.Get, 267Method = HttpMethod.Get, 310Method = HttpMethod.Get, 357Method = HttpMethod.Get, 422Method = HttpMethod.Get, 591using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 617using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 640using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, _unreachableRequestUri); 681Method = HttpMethod.Get,
Logging\HttpClientLoggerTest.cs (2)
85Method = HttpMethod.Get, 123Method = HttpMethod.Get,
Logging\HttpRequestBodyReaderTest.cs (1)
233Method = HttpMethod.Get
Microsoft.Extensions.Http.Polly.Tests (8)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (8)
108await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 146await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 231await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 278var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/")); 323var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/")); 366var request = new HttpRequestMessage(HttpMethod.Get, "http://host1/Service1/"); 375request = new HttpRequestMessage(HttpMethod.Get, "http://host1/Service1/"); 384request = new HttpRequestMessage(HttpMethod.Get, "http://host2/Service1/");
Microsoft.Extensions.Http.Resilience (1)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (1)
105using var request = new HttpRequestMessage(HttpMethod.Get, "https://localhost:123");
Microsoft.Extensions.Http.Resilience.Tests (17)
Hedging\HedgingTests.cs (9)
83using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 123using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 142using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 164using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 189using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 213using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 237using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 265using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 289using var request = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query");
Hedging\StandardHedgingTests.cs (5)
223using var request = new HttpRequestMessage(HttpMethod.Get, "https://key:80/discarded"); 256using var firstRequest = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 263using var secondRequest = new HttpRequestMessage(HttpMethod.Get, "https://to-be-replaced:1234/some-path?query"); 291using var request = new HttpRequestMessage(HttpMethod.Get, "https://some-endpoint:1234/some-path?query"); 338using var request = new HttpRequestMessage(HttpMethod.Get, $"https://{FailingEndpoint}:3000");
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
41using var request = new HttpRequestMessage(HttpMethod.Get, url);
Resilience\RequestMessageSnapshotTests.cs (2)
24Method = HttpMethod.Get, 58Method = HttpMethod.Get,
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
198var httpRequest = new HttpRequestMessage(HttpMethod.Get, "http://basket");
Microsoft.ML.Tokenizers (1)
Utils\Helpers.netcoreapp.cs (1)
27HttpResponseMessage response = client.Send(new HttpRequestMessage(HttpMethod.Get, url), HttpCompletionOption.ResponseHeadersRead);
Negotiate.Client (3)
Controllers\AuthTestController.cs (3)
117result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Unrestricted") { Version = GetProtocolVersion(protocol2) }); 150result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Unrestricted") { Version = GetProtocolVersion(protocol2) }); 183result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Authorized") { Version = GetProtocolVersion(protocol2) });
ServerComparison.FunctionalTests (6)
ResponseCompressionTests.cs (2)
167var request = new HttpRequestMessage(HttpMethod.Get, "NoAppCompression"); 199var request = new HttpRequestMessage(HttpMethod.Get, url);
ResponseTests.cs (4)
129var requestMessage = new HttpRequestMessage(HttpMethod.Get, "contentlength") 174var requestMessage = new HttpRequestMessage(HttpMethod.Get, "connectionclose") 199var requestMessage = new HttpRequestMessage(HttpMethod.Get, "chunked") 224var requestMessage = new HttpRequestMessage(HttpMethod.Get, "manuallychunked")
SocialSample (2)
Startup.cs (2)
137var request = new HttpRequestMessage(HttpMethod.Get, context.Options.UserInformationEndpoint); 198var request = new HttpRequestMessage(HttpMethod.Get, context.Options.UserInformationEndpoint);
Stress.AppHost (7)
Program.cs (7)
49serviceBuilder.WithHttpCommand("/write-console", "Write to console", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 50serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 51serviceBuilder.WithHttpCommand("/big-trace", "Big trace", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 52serviceBuilder.WithHttpCommand("/trace-limit", "Trace limit", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 53serviceBuilder.WithHttpCommand("/log-message", "Log message", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 54serviceBuilder.WithHttpCommand("/log-message-limit", "Log message limit", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning"); 55serviceBuilder.WithHttpCommand("/multiple-traces-linked", "Multiple traces linked", method: HttpMethod.Get, iconName: "ContentViewGalleryLightning");
System.Net.Http (12)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\H3StaticTable.Http3.cs (1)
15[HttpMethod.Get] = 17,
System\Net\Http\HttpClient.cs (4)
170HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 242HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 317HttpRequestMessage request = CreateRequestMessage(HttpMethod.Get, requestUri); 378SendAsync(CreateRequestMessage(HttpMethod.Get, requestUri), completionOption, cancellationToken);
System\Net\Http\HttpMethod.cs (3)
83/// This method may return a singleton instance for known methods; for example, it may return <see cref="Get"/> 84/// if "GET" is specified. The parsing is performed in a case-insensitive manner, so it may also return <see cref="Get"/> 100'g' => Get,
System\Net\Http\HttpRequestMessage.cs (1)
120: this(HttpMethod.Get, (Uri?)null)
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (3)
71Trace($"Modified request from {request.Method} to {HttpMethod.Get} in response to status code {(int)response.StatusCode} '{response.StatusCode}'.", request.GetHashCode()); 74request.Method = HttpMethod.Get; 154return requestMethod != HttpMethod.Get && requestMethod != HttpMethod.Head;
System.Net.Requests (2)
System\Net\HttpWebRequest.cs (2)
39private string _originVerb = HttpMethod.Get.Method; 1077if (string.Equals(HttpMethod.Get.Method, _originVerb, StringComparison.OrdinalIgnoreCase) ||
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
92request = new HttpRequestMessage(HttpMethod.Get, uri) { Version = HttpVersion.Version11 };
Templates.Blazor.Tests (3)
BlazorWebTemplateTest.cs (1)
85var request = new HttpRequestMessage(HttpMethod.Get, new Uri(aspNetProcess.ListeningUri, "/_framework/blazor.boot.json"));
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
137HttpMethod.Get, 265HttpMethod.Get,
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
137HttpMethod.Get, 265HttpMethod.Get,
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
137HttpMethod.Get, 265HttpMethod.Get,
Templates.Mvc.Tests (2)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
137HttpMethod.Get, 265HttpMethod.Get,
Templates.Tests (2)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
137HttpMethod.Get, 265HttpMethod.Get,