773 references to HttpRequestMessage
Aspire.Dashboard.Tests (12)
Integration\OtlpCorsHttpServiceTests.cs (5)
30var preflightRequest = new HttpRequestMessage(HttpMethod.Options, "/v1/logs"); 55var preflightRequest1 = new HttpRequestMessage(HttpMethod.Options, "/v1/logs"); 69var preflightRequest2 = new HttpRequestMessage(HttpMethod.Options, "/v1/logs"); 95var preflightRequest = new HttpRequestMessage(HttpMethod.Options, "/v1/logs"); 123var preflightRequest = new HttpRequestMessage(HttpMethod.Options, "/v1/logs");
Integration\OtlpHttpServiceTests.cs (3)
140var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs"); 168var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/logs"); 260var requestMessage = new HttpRequestMessage(new HttpMethod(method), "/v1/logs");
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.Redis (1)
RedisBuilderExtensions.cs (1)
282var deleteRequest = new HttpRequestMessage(HttpMethod.Delete, databasesPath)
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 (11)
Program.cs (11)
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 }) 243using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringDuplexContent(content) }) 257using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplex") { Version = httpVersion, Content = new StringDuplexContent(content) }) 271using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri + "/duplexSlow") { Version = httpVersion, Content = new ByteAtATimeNoLengthContent(Encoding.ASCII.GetBytes(content)) }) 285using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) }) 302using (var req = new HttpRequestMessage(HttpMethod.Post, serverUri) { Version = httpVersion, Content = new StringContent(content) }) 325using (var req = new HttpRequestMessage(HttpMethod.Head, serverUri) { Version = httpVersion }) 347using (var req = new HttpRequestMessage(HttpMethod.Put, serverUri) { Version = httpVersion, Content = new StringContent(content) })
IIS.FunctionalTests (7)
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 (3)
127var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 145var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}");
IISExpress.FunctionalTests (6)
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 (3)
127var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 145var request = new HttpRequestMessage(HttpMethod.Get, "/CompressedData"); 582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}");
Interop.FunctionalTests (49)
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 (37)
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()}/"); 293var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 374var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 417var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 488var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 559var request = new HttpRequestMessage(HttpMethod.Post, $"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()}/"); 724var request = new HttpRequestMessage(HttpMethod.Post, $"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()}/"); 1013var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 1110var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 1257var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 1316var request = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{host.GetPort()}/"); 1369var request = new HttpRequestMessage(HttpMethod.Post, $"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}/"); 1839var request = new HttpRequestMessage(method, url); 1885var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 1962var request1 = new HttpRequestMessage(HttpMethod.Get, $"https://127.0.0.1:{port}/"); 2038var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 2138var request = new HttpRequestMessage(HttpMethod.Post, $"https://127.0.0.1:{host.GetPort()}/"); 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 (1)
1698return new HttpRequestMessage(method, url)
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.OAuth (1)
OAuthHandler.cs (1)
218var requestMessage = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint);
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
596var requestMessage = new HttpRequestMessage(HttpMethod.Post, parEndpoint); 991var requestMessage = new HttpRequestMessage(HttpMethod.Post, tokenEndpointRequest.TokenEndpoint ?? _configuration?.TokenEndpoint); 1057var requestMessage = new HttpRequestMessage(HttpMethod.Get, userInfoEndpoint);
Microsoft.AspNetCore.Authentication.Test (15)
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)); 1309var request = new HttpRequestMessage(HttpMethod.Get, uri);
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
58var request = new HttpRequestMessage(HttpMethod.Post, "/");
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)
126var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 177var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
WsFederation\WsFederationTest_Handler.cs (2)
124var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 175var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
254var request = new HttpRequestMessage(httpMethod, url + queryString);
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
17var request = new HttpRequestMessage(HttpMethod.Get, uri);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
292using var request = new HttpRequestMessage(HttpMethod.Post, "/") 356using var httpMessage = new HttpRequestMessage(HttpMethod.Get, "/");
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.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 (6)
HttpMethodOverrideMiddlewareTest.cs (6)
39var req = new HttpRequestMessage(HttpMethod.Post, ""); 70var req = new HttpRequestMessage(HttpMethod.Post, ""); 100var req = new HttpRequestMessage(HttpMethod.Get, ""); 133var req = new HttpRequestMessage(HttpMethod.Post, ""); 171var req = new HttpRequestMessage(HttpMethod.Post, ""); 208var req = new HttpRequestMessage(HttpMethod.Post, "");
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 (343)
AntiforgeryMiddlewareTest.cs (5)
40var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryToken"); 83var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryToken"); 124var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryTokenAndSizeLimit"); 156var request = new HttpRequestMessage(HttpMethod.Post, "/Test/PostWithRequireAntiforgeryTokenAndFormLimit"); 188var request = new HttpRequestMessage(HttpMethod.Post, "/TestWithRequestSizeLimit/PostWithRequireAntiforgeryTokenAndDisableSizeLimit");
AntiforgeryTests.cs (5)
67var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 117var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/FlushAsyncLogin"); 147var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 190var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/Login"); 203var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Antiforgery/LoginWithRedirectResultFilter");
ApiBehaviorTest.cs (2)
103var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/contact") 119var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/contact")
ApiExplorerTest.cs (2)
415var request = new HttpRequestMessage( 438var request = new HttpRequestMessage(
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);
BasicTests.cs (3)
206var response = await Client.SendAsync(new HttpRequestMessage( 224var response = await Client.SendAsync(new HttpRequestMessage( 649var request = new HttpRequestMessage(HttpMethod.Post, "/Home/Product");
ConsumesAttributeTestsBase.cs (8)
47var request = new HttpRequestMessage( 64var request = new HttpRequestMessage( 81var request = new HttpRequestMessage( 99var request = new HttpRequestMessage( 120var request = new HttpRequestMessage( 144var request = new HttpRequestMessage( 165var request = new HttpRequestMessage( 188var request = new HttpRequestMessage(
ContentNegotiationTest.cs (12)
109var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/ContentNegotiation/UserInfo_ProducesWithTypeOnly"); 126var request = new HttpRequestMessage( 151var request = new HttpRequestMessage( 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); 404var request = new HttpRequestMessage(HttpMethod.Post, 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");
CorsTests.cs (1)
16var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post");
CorsTestsBase.cs (15)
44var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetBlogComments"); 64var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions"); 80var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/GetOptions"); 98var request = new HttpRequestMessage(new HttpMethod("OPTIONS"), "http://localhost/NonCors/Post"); 117var request = new HttpRequestMessage( 154var request = new HttpRequestMessage( 186var request = new HttpRequestMessage( 222var request = new HttpRequestMessage(HttpMethod.Put, "http://localhost/Cors/GetUserComments"); 247var request = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Cors/GetExclusiveContent"); 271var request = new HttpRequestMessage( 298var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url); 330var request = new HttpRequestMessage(new HttpMethod(CorsConstants.PreflightHttpMethod), url); 367var request = new HttpRequestMessage( 392var request = new HttpRequestMessage( 415var request = new HttpRequestMessage(
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 (31)
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"); 209var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromDiskWithFileName"); 227var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 247var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromDiskWithFileName_WithLastModifiedAndEtag"); 279var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "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"); 430var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromStreamWithFileName"); 448var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag"); 468var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromStreamWithFileName_WithEtag"); 498var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "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"); 634var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName"); 652var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 672var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 704var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/DownloadFiles/DownloadFromBinaryDataWithFileName_WithEtag"); 760var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://localhost/EmbeddedFiles/DownloadFileWithFileName"); 784var httpRequestMessage = new HttpRequestMessage(new HttpMethod(httpMethod), "http://localhost/EmbeddedFiles/DownloadFileWithFileName_RangeProcessingNotEnabled"); 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"); 908var httpRequestMessage = new HttpRequestMessage(HttpMethod.Head, "http://localhost/EmbeddedFiles/DownloadFileWithFileName");
FiltersTest.cs (1)
87var request = new HttpRequestMessage(HttpMethod.Post, url)
FormFileUploadTest.cs (2)
39var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/UploadFiles"); 67var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/UploadProductSpecs");
GlobalAuthorizationFilterTestBase.cs (1)
72var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Administration/EitherCookie");
HtmlGenerationTest.cs (7)
324var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Customer/HtmlGeneration_Customer"); 350var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Customer/HtmlGeneration_Customer/CustomerWithRecords"); 376var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Customer/HtmlGeneration_Customer/CustomerWithRecords"); 504var request = new HttpRequestMessage(HttpMethod.Get, "/catalog/cart?correlationid=2"); 617var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/categories/Electronics"); 786var request = new HttpRequestMessage(HttpMethod.Post, "HtmlGeneration_Home/ValidationProviderAttribute"); 806var request = new HttpRequestMessage(HttpMethod.Get, url);
InputObjectValidationTests.cs (4)
268var requestMessage = new HttpRequestMessage(HttpMethod.Post, "Validation/ValidationThrowsError_WhenValidationExceedsMaxValidationDepth") 289var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation") 318var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation") 350var requestMessage = new HttpRequestMessage(HttpMethod.Post, "TestApi/PostBookWithNoValidation")
JsonInputFormatterTestBase.cs (1)
223var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/JsonFormatter/ReturnInput/");
JsonOutputFormatterTestBase.cs (1)
51var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee");
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");
NonNullableReferenceTypesTest.cs (2)
52var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/NonNullable"); 94var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/NonNullable");
RazorPageModelTest.cs (6)
39var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryUpdateModel/10") 64var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModel/10") 89var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModel/10") 115var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryUpdateModelPageModel/10") 140var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModelPageModel/10") 165var request = new HttpRequestMessage(HttpMethod.Post, "Pages/TryValidateModelPageModel/10")
RazorPagesTest.cs (41)
101var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HandlerTestPage"); 133var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HandlerTestPage/CustomActionResult"); 214var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/ModelHandlerTestPage"); 246var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/ModelHandlerTestPage/CustomActionResult"); 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"); 416var postRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost/HelloWorldWithPageModelHandler"); 437var request = new HttpRequestMessage(new HttpMethod(httpMethod), url); 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); 524var request = new HttpRequestMessage(HttpMethod.Get, url); 549var request = new HttpRequestMessage(HttpMethod.Get, url); 573var getRequest = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty"); 580var request = new HttpRequestMessage(HttpMethod.Post, url); 594request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/TempData/TempDataPageModelProperty"); 671var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PagePropertyBinding/10") 700var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PagePropertyBinding/27") 726var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PageModelWithPropertyBinding/10?PropertyWithSupportGetsTrue=foo") 757var request = new HttpRequestMessage(HttpMethod.Post, url) 786var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PolymorphicBinding") 811var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PolymorphicBinding") 842var request = new HttpRequestMessage(HttpMethod.Post, "Pages/PropertyBinding/PageWithPropertyAndArgumentBinding?id=11") 867var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/PageWithPropertyAndArgumentBinding?id=11") 890var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/PageModelWithPropertyBinding/10?PropertyWithSupportGetsTrue=foo"); 906var request = new HttpRequestMessage(HttpMethod.Head, "Pages/PropertyBinding/BindPropertyWithGet?value=11"); 923var request = new HttpRequestMessage(HttpMethod.Get, "Pages/PropertyBinding/BindPropertyWithGet?value=11"); 983var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/Redirects/RedirectToSelf") 1288var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/PropertyBinding/BindPropertiesOnModel?Property1=123") 1326var request = new HttpRequestMessage(HttpMethod.Post, "/Pages/PropertyBinding/BindPropertiesOnModel?Property1=123") 1455var request = new HttpRequestMessage(HttpMethod.Options, "http://localhost/HelloWorld"); 1471var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/HelloWorldWithOptionsHandler"); 1487var request = new HttpRequestMessage(HttpMethod.Options, "http://localhost/HelloWorldWithOptionsHandler");
RazorPagesWithBasePathTest.cs (8)
432var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel") 461var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel?Attempts=3") 489var message = new HttpRequestMessage(HttpMethod.Post, "/CustomModelTypeModel") 616var request = new HttpRequestMessage(HttpMethod.Head, "/Antiforgery/AntiforgeryDefault"); 629var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/AntiforgeryDefault"); 642var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/AntiforgeryDefault"); 656var request = new HttpRequestMessage(HttpMethod.Post, "/Antiforgery/IgnoreAntiforgery"); 707var request = new HttpRequestMessage(HttpMethod.Post, url)
ReadFromDisconnectedClientTest.cs (2)
42var request = new HttpRequestMessage(HttpMethod.Post, "ReadFromThrowingRequestBody/AppliesAntiforgeryValidation"); 55var request = new HttpRequestMessage(HttpMethod.Post, "ReadFromThrowingRequestBody/ReadForm");
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 (7)
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); 100var request = new HttpRequestMessage(HttpMethod.Post, url); 116var request = new HttpRequestMessage(HttpMethod.Get, url); 132var request = new HttpRequestMessage(HttpMethod.Get, url);
RoutingFallbackTest.cs (7)
41var request = new HttpRequestMessage(HttpMethod.Get, url); 56var request = new HttpRequestMessage(HttpMethod.Get, url); 72var request = new HttpRequestMessage(HttpMethod.Get, url); 88var request = new HttpRequestMessage(HttpMethod.Post, url); 104var request = new HttpRequestMessage(HttpMethod.Post, url); 120var request = new HttpRequestMessage(HttpMethod.Get, url); 136var request = new HttpRequestMessage(HttpMethod.Post, url)
RoutingTests.cs (1)
36var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url));
RoutingTestsBase.cs (18)
401var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}"); 454var request = new HttpRequestMessage(new HttpMethod(method), $"http://localhost{url}"); 496var response = await Client.SendAsync(new HttpRequestMessage(HttpMethod.Post, url)); 522var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url)); 538var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 609var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 703var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Store/Shop/Orders"); 728var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Employee/5/Salary"); 748var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Store/Shop/Orders"); 771var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee"); 793var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/Manager"); 818var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/" + path); 838var message = new HttpRequestMessage(new HttpMethod("MERGE"), "http://localhost/api/Employee/5"); 861var message = new HttpRequestMessage(new HttpMethod(verb), "http://localhost/api/Employee/5/Administrator"); 1064var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/api/Company/5"); 1486var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path); 1521var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path); 1538var request = new HttpRequestMessage(new HttpMethod(verb), "http://localhost" + path);
SerializableErrorTests.cs (4)
50var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SerializableError/ModelStateErrors"); 72var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/LogErrors") 120var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee"); 161var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/SerializableError/CreateEmployee");
SimpleWithWebApplicationBuilderTests.cs (2)
232var request = new HttpRequestMessage(HttpMethod.Post, "accepts-default"); 247var request = new HttpRequestMessage(HttpMethod.Post, "accepts-xml");
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 (2)
94var request = new HttpRequestMessage(HttpMethod.Get, path); 101var request = new HttpRequestMessage(HttpMethod.Post, path);
TempDataPropertyTest.cs (1)
162var request = new HttpRequestMessage(HttpMethod.Get, path);
TempDataTestBase.cs (1)
264var request = new HttpRequestMessage(HttpMethod.Get, path);
TestingInfrastructureTests.cs (7)
56var request = new HttpRequestMessage(HttpMethod.Post, "Testing/RedirectHandler/2") 77var request = new HttpRequestMessage(HttpMethod.Post, "Testing/RedirectHandler/2") 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");
VersioningEndpointRoutingTests.cs (2)
34var message = new HttpRequestMessage(HttpMethod.Delete, "http://localhost/" + "Customers/5?version=2"); 53var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + "Customers?version=2");
VersioningTestsBase.cs (24)
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"); 175var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets?version=" + version); 199var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Tickets"); 224var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5?version=" + version); 250var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Tickets/5"); 269var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version); 291var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/Books?version=" + version); 312var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies"); 333var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies?version=2"); 355var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5"); 376var message = new HttpRequestMessage(new HttpMethod(method), "http://localhost/Movies/5?version=2"); 395var message = new HttpRequestMessage(HttpMethod.Put, "http://localhost/Movies/5?version=2"); 417var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url); 438var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url); 459var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + url); 483var message = new HttpRequestMessage(HttpMethod.Get, "http://localhost/" + url + query); 502var message = new HttpRequestMessage(HttpMethod.Post, "http://localhost/" + "Customers?version=2"); 521var message = new HttpRequestMessage(HttpMethod.Delete, "http://localhost/" + "Customers/5?version=2"); 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");
XmlDataContractSerializerInputFormatterTest.cs (2)
58var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Validation/CreateStore"); 86var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost/Validation/CreateStore");
XmlOutputFormatterTests.cs (10)
40var request = new HttpRequestMessage( 62var request = new HttpRequestMessage( 85var request = new HttpRequestMessage( 106var request = new HttpRequestMessage( 129var request = new HttpRequestMessage( 150var request = new HttpRequestMessage( 168var request = new HttpRequestMessage( 188var request = new HttpRequestMessage( 208var request = new HttpRequestMessage( 229var request = new HttpRequestMessage(
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.OutputCaching.Tests (7)
OutputCacheTests.cs (6)
91var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 92var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 111var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 112var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 962() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""))); 1003var resp = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""));
TestUtils.cs (1)
271return new HttpRequestMessage(new HttpMethod(method), requestUri);
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
239using var request = new HttpRequestMessage(HttpMethod.Post, ""); 310using var request = new HttpRequestMessage(HttpMethod.Post, ""); 386using var request = new HttpRequestMessage(HttpMethod.Post, ""); 488using var request = new HttpRequestMessage(HttpMethod.Post, ""); 572using var request = new HttpRequestMessage(HttpMethod.Post, ""); 723using var request = new HttpRequestMessage(HttpMethod.Post, "");
Microsoft.AspNetCore.ResponseCaching.Tests (5)
ResponseCachingTests.cs (4)
97var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 98var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 119var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 120var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, ""));
TestUtils.cs (1)
257return new HttpRequestMessage(new HttpMethod(method), requestUri);
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
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, ""); 1278var request = new HttpRequestMessage(new HttpMethod(httpMethod), "");
Microsoft.AspNetCore.Routing.FunctionalTests (33)
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);
MinimalFormTests.cs (13)
53var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 113var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 160var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 199var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 276var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 323var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 419var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 474var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 533var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 585var request = new HttpRequestMessage(HttpMethod.Post, "/todos/1"); 637var request = new HttpRequestMessage(HttpMethod.Post, "/todos/1"); 686var request = new HttpRequestMessage(HttpMethod.Post, "todo"); 750var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Post, "/")
RouterSampleTest.cs (4)
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"); 83var message = new HttpRequestMessage(new HttpMethod(httpVerb), "api/all/Joe/Duf");
WebHostBuilderExtensionsTest.cs (5)
25new HttpRequestMessage(HttpMethod.Get, "greeting/James"), 37new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") }, 49new HttpRequestMessage(HttpMethod.Put, "greeting/James") { Content = new StringContent("Biography") }, 54new HttpRequestMessage(HttpMethod.Delete, "greeting/James"), 67new HttpRequestMessage(HttpMethod.Post, "greeting/James") { Content = new StringContent("Biography") },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Http3Tests.cs (1)
75var request = new HttpRequestMessage(HttpMethod.Get, address);
Listener\ResponseHeaderTests.cs (2)
342var request = new HttpRequestMessage(HttpMethod.Get, uri); 356var request = new HttpRequestMessage(HttpMethod.Head, uri);
OpaqueUpgradeTests.cs (1)
297var request = new HttpRequestMessage(HttpMethod.Post, address);
ResponseHeaderTests.cs (2)
172HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, address); 199HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, address);
Microsoft.AspNetCore.Server.IISIntegration.Tests (10)
IISMiddlewareTests.cs (10)
54var req = new HttpRequestMessage(HttpMethod.Get, ""); 92var req = new HttpRequestMessage(HttpMethod.Get, ""); 134var request = new HttpRequestMessage(HttpMethod.Post, requestPath); 193var request = new HttpRequestMessage(method, "/iisintegration"); 238var request = new HttpRequestMessage(HttpMethod.Post, path); 283var request = new HttpRequestMessage(HttpMethod.Post, "/iisintegration"); 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.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.StaticAssets.Tests (30)
StaticAssetsIntegrationTests.cs (30)
438var message = new HttpRequestMessage(HttpMethod.Get, "/sample.txt"); 651var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 664var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 675var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 686var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 713var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 726var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 739var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 762new HttpRequestMessage(method, "http://localhost/sample.txt")); 783var req1 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 786var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 799var req1 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 803var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 810var req3 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 822var req1 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 829var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 834var req3 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 839var req4 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 867var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 880var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 901new HttpRequestMessage(method, "http://localhost/sample.txt")); 903var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 916new HttpRequestMessage(method, "http://localhost/sample.txt")); 927var req2 = new HttpRequestMessage(method, "sample.txt"); 942new HttpRequestMessage(method, "http://localhost/sample.txt")); 944var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt"); 957var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 969var req = new HttpRequestMessage(method, "http://localhost/sample.txt"); 983new HttpRequestMessage(method, "http://localhost/sample.txt")); 985var req2 = new HttpRequestMessage(method, "http://localhost/sample.txt");
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
201var request = new HttpRequestMessage(HttpMethod.Head, requestUrl);
Microsoft.AspNetCore.StaticFiles.Tests (32)
CacheHeaderTests.cs (8)
50var req = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 64var req = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 76var req = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 88var req = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 116var req2 = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 130var req2 = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 144var req2 = new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"); 168new HttpRequestMessage(method, "http://localhost/SubFolder/extra.xml"));
RangeHeaderTests.cs (24)
23var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 44var req = new HttpRequestMessage(HttpMethod.Head, "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"); 116var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 135var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 152var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 171var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 190var req = new HttpRequestMessage(HttpMethod.Head, "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"); 237var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 245req = new HttpRequestMessage(HttpMethod.Head, "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"); 326var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 344var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 359var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 379var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 401var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt"); 422var req = new HttpRequestMessage(HttpMethod.Get, "http://localhost/SubFolder/ranges.txt"); 442var req = new HttpRequestMessage(HttpMethod.Head, "http://localhost/SubFolder/ranges.txt");
Microsoft.AspNetCore.TestHost (1)
RequestBuilder.cs (1)
23_req = new HttpRequestMessage(HttpMethod.Get, path);
Microsoft.AspNetCore.TestHost.Tests (17)
ClientHandlerTests.cs (5)
219var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 314var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 342var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 360HttpRequestMessage message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 497using (var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"))
TestClientTests.cs (11)
196var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 253var message = new HttpRequestMessage(HttpMethod.Post, "https://example.com/"); 304var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 361var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 423var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 470var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 521var httpRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:12345"); 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.Build.Tasks.Feed (1)
src\CreateAzureDevOpsFeed.cs (1)
148using HttpRequestMessage createFeedMessage = new HttpRequestMessage(HttpMethod.Post, $"{AzureDevOpsProject}/_apis/packaging/feeds");
Microsoft.DotNet.Deployment.Tasks.Links (1)
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 (8)
CheckAzurePipelinesTestResults.cs (4)
58using var req = new HttpRequestMessage( 112using var req = new HttpRequestMessage( 164using (var req = new HttpRequestMessage( 208using (var req = new HttpRequestMessage(
CreateFailedTestsForFailedWorkItems.cs (1)
39new HttpRequestMessage(
FindDotNetCliPackage.cs (1)
266using var req = new HttpRequestMessage(HttpMethod.Head, uri);
StartAzurePipelinesTestRun.cs (1)
34new HttpRequestMessage(
StopAzurePipelinesTestRun.cs (1)
29new HttpRequestMessage(
Microsoft.DotNet.Helix.Sdk.Tests (16)
FindDotNetCliPackageTests.cs (16)
27RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 32RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 37RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"), 42RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 75RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"), 80RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 125RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/runtime-productVersion.txt"), 131RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://fakeazureaccount.blob.core.windows.net/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 178RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 183RequestMessage= new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 188RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"), 193RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 244RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/runtime-productVersion.txt"), 249RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"), 254RequestMessage = new HttpRequestMessage(HttpMethod.Get, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/runtime-productVersion.txt"), 259RequestMessage = new HttpRequestMessage(HttpMethod.Head, "https://dotnetbuilds.blob.core.windows.net/public/Runtime/6.0.102/dotnet-runtime-6.0.102-win-x86.zip"),
Microsoft.DotNet.Internal.SymbolHelper (4)
SymbolPromotionHelper.cs (3)
146using HttpRequestMessage registerRequest = new(HttpMethod.Post, url) 200using HttpRequestMessage statusRequest = new(HttpMethod.Get, requestSpecificEndpoint) 263using HttpRequestMessage statusRequest = new(HttpMethod.Patch, requestSpecificEndpoint)
SymbolUploadHelperFactory.cs (1)
150using HttpRequestMessage getToolRequest = new(HttpMethod.Get, downloadUri) { Headers = { Accept = { new ("application/zip") } } };
Microsoft.DotNet.VersionTools (4)
Automation\GitHubApi\GitHubClient.cs (3)
209HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), url); 372HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("POST"), url) 396HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), url)
Automation\VstsApi\VstsAdapterClient.cs (1)
169var request = new HttpRequestMessage(new HttpMethod("PATCH"), url)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
Benchmarks\HeadersReaderBenchmark.cs (1)
35Request = new HttpRequestMessage(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\HugeHttpCLientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\MediumHttpClientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
Benchmarks\SmallHttpClientLoggingBenchmark.cs (1)
17private static HttpRequestMessage Request => new(HttpMethod.Post, "https://www.microsoft.com");
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.BySelector.cs (2)
38using var request = new HttpRequestMessage(HttpMethod.Head, url); 84using var request = new HttpRequestMessage(HttpMethod.Head, url);
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
41using var request = new HttpRequestMessage(HttpMethod.Get, url);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
198var httpRequest = new HttpRequestMessage(HttpMethod.Get, "http://basket");
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);