21 references to HttpClientSlim
Microsoft.AspNetCore.InternalTesting.Tests (6)
HttpClientSlimTest.cs (6)
22Assert.Equal("test", await HttpClientSlim.GetStringAsync(address)); 31await Assert.ThrowsAnyAsync<HttpRequestException>(() => HttpClientSlim.GetStringAsync(address)); 40Assert.Equal("test post", await HttpClientSlim.PostAsync(address, new StringContent("test post"))); 50() => HttpClientSlim.PostAsync(address, new StringContent(""))); 58Assert.Equal("[fe80::5d2a:d070:6fd6:1bac]:5003", HttpClientSlim.GetHost(requestUri)); 65Assert.Equal("[fe80::5d2a:d070:6fd6:1bac]", HttpClientSlim.GetHost(requestUri));
Sockets.BindTests (15)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (15)
205var response = await HttpClientSlim.GetStringAsync(testUrl, validateCertificate: false); 262var response = await HttpClientSlim.GetStringAsync(expectedUrl, validateCertificate: false); 333var response = await HttpClientSlim.GetStringAsync(testUrlWithPort, validateCertificate: false); 388var response = await HttpClientSlim.GetStringAsync(testUrl, validateCertificate: false); 435var response = await HttpClientSlim.GetStringAsync(testUrl, validateCertificate: false); 526Assert.Equal(new Uri(address).ToString(), await HttpClientSlim.GetStringAsync(address, validateCertificate: false)); 641Assert.Equal(new Uri(useUrlsAddressWithPort).ToString(), await HttpClientSlim.GetStringAsync(useUrlsAddressWithPort)); 686Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.GetStringAsync(endPointAddress, validateCertificate: false)); 722Assert.Equal(new Uri(endPointAddress).ToString(), await HttpClientSlim.GetStringAsync(endPointAddress, validateCertificate: false)); 811Assert.Equal(endPointAddress, await HttpClientSlim.GetStringAsync(endPointAddress)); 831Assert.Equal(endPointAddress, await HttpClientSlim.GetStringAsync(endPointAddress)); 862Assert.Equal(ipv4endPointAddress, await HttpClientSlim.GetStringAsync(ipv4endPointAddress)); 863Assert.Equal(ipv6endPointAddress, await HttpClientSlim.GetStringAsync(ipv6endPointAddress)); 884Assert.Equal(ipv4endPointAddress, await HttpClientSlim.GetStringAsync(ipv4endPointAddress)); 885Assert.Equal(ipv6endPointAddress, await HttpClientSlim.GetStringAsync(ipv6endPointAddress));