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