17 references to GetStringAsync
Microsoft.AspNetCore.InternalTesting.Tests (2)
HttpClientSlimTest.cs (2)
22
Assert.Equal("test", await HttpClientSlim.
GetStringAsync
(address));
31
await Assert.ThrowsAnyAsync<HttpRequestException>(() => HttpClientSlim.
GetStringAsync
(address));
Sockets.BindTests (15)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (15)
205
var response = await HttpClientSlim.
GetStringAsync
(testUrl, validateCertificate: false);
262
var response = await HttpClientSlim.
GetStringAsync
(expectedUrl, validateCertificate: false);
333
var response = await HttpClientSlim.
GetStringAsync
(testUrlWithPort, validateCertificate: false);
388
var response = await HttpClientSlim.
GetStringAsync
(testUrl, validateCertificate: false);
435
var response = await HttpClientSlim.
GetStringAsync
(testUrl, validateCertificate: false);
526
Assert.Equal(new Uri(address).ToString(), await HttpClientSlim.
GetStringAsync
(address, validateCertificate: false));
641
Assert.Equal(new Uri(useUrlsAddressWithPort).ToString(), await HttpClientSlim.
GetStringAsync
(useUrlsAddressWithPort));
686
Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.
GetStringAsync
(endPointAddress, validateCertificate: false));
722
Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.
GetStringAsync
(endPointAddress, validateCertificate: false));
811
Assert.Equal(endPointAddress, await HttpClientSlim.
GetStringAsync
(endPointAddress));
831
Assert.Equal(endPointAddress, await HttpClientSlim.
GetStringAsync
(endPointAddress));
862
Assert.Equal(ipv4endPointAddress, await HttpClientSlim.
GetStringAsync
(ipv4endPointAddress));
863
Assert.Equal(ipv6endPointAddress, await HttpClientSlim.
GetStringAsync
(ipv6endPointAddress));
884
Assert.Equal(ipv4endPointAddress, await HttpClientSlim.
GetStringAsync
(ipv4endPointAddress));
885
Assert.Equal(ipv6endPointAddress, await HttpClientSlim.
GetStringAsync
(ipv6endPointAddress));