35 references to GetAsync
IIS.FunctionalTests (2)
Http3Tests.cs (2)
136var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 153var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead);
Interop.FunctionalTests (7)
HttpClientHttp2InteropTests.cs (7)
137using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 567var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 625var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 653var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 682var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 972var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout(); 1013var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).DefaultTimeout();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Http3Tests.cs (2)
206var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 232var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead);
Listener\ResponseBodyTests.cs (4)
368var responseTask = client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 408var responseTask = client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 447var responseTask = client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 481var responseTask = client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead);
ResponseSendFileTests.cs (2)
614var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead); 663var response = await client.GetAsync(address, HttpCompletionOption.ResponseHeadersRead);
Microsoft.AspNetCore.TestHost.Tests (17)
ClientHandlerTests.cs (9)
414HttpResponseMessage response = await httpClient.GetAsync("https://example.com/", 433HttpResponseMessage response = await httpClient.GetAsync("https://example.com/", 451HttpResponseMessage response = await httpClient.GetAsync("https://example.com/", 473HttpResponseMessage response = await httpClient.GetAsync("https://example.com/", 516return Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("https://example.com/", 532HttpResponseMessage response = await httpClient.GetAsync("https://example.com/", 552return Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("https://example.com/", 568return Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("https://example.com/", 593return Assert.ThrowsAsync<InvalidOperationException>(() => httpClient.GetAsync("https://example.com/",
RequestLifetimeTests.cs (4)
28var ex = await Assert.ThrowsAsync<OperationCanceledException>(() => client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead)); 44var ex = await Assert.ThrowsAsync<OperationCanceledException>(() => client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead)); 63var response = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead); 86using var response = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead);
ResponseBodyTests.cs (1)
137var response = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead);
ResponseResetTests.cs (3)
100var rex = await Assert.ThrowsAsync<HttpResetTestException>(() => client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead)); 122var response = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead); 148var response = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead);
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
163var headerResponse = client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).Result;