167 references to HttpClient
Aspire.Cli.Tests (16)
Mcp\Docs\DocsFetcherTests.cs (16)
30using var httpClient = new HttpClient(handler); 50using var httpClient = new HttpClient(handler); 71using var httpClient = new HttpClient(handler); 98using var httpClient = new HttpClient(handler); 120using var httpClient = new HttpClient(handler); 155using var httpClient = new HttpClient(handler); 173using var httpClient = new HttpClient(handler); 186using var httpClient = new HttpClient(handler); 200using var httpClient = new HttpClient(handler); 222using var httpClient = new HttpClient(handler); 242using var httpClient = new HttpClient(handler); 261using var httpClient = new HttpClient(handler); 284using var httpClient = new HttpClient(handler); 305using var httpClient = new HttpClient(handler); 325using var httpClient = new HttpClient(handler); 358using var httpClient = new HttpClient(handler);
Aspire.Dashboard (2)
Model\Assistant\ChatClientFactory.cs (1)
215httpClient = new HttpClient(handler) { Timeout = Timeout.InfiniteTimeSpan };
Model\DebugSessionHelpers.cs (1)
38var client = new HttpClient(resolvedHandler)
Aspire.Dashboard.Tests (12)
Integration\FrontendOpenIdConnectAuthTests.cs (2)
36using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 81using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") };
Integration\HealthTests.cs (1)
27using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri(basePath) };
Integration\IntegrationTestHelpers.cs (1)
135return new HttpClient(handler) { BaseAddress = new Uri(address) };
Integration\ResponseCompressionTests.cs (2)
22using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 44using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\StartupTests.cs (3)
332using var httpClient = new HttpClient(new HttpClientHandler 388using var browserHttpClient = new HttpClient(new HttpClientHandler 409using var mcpHttpClient = new HttpClient(new HttpClientHandler
Integration\TelemetryApiTests.cs (3)
102using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 174using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 343using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Aspire.Hosting.Tests (1)
DistributedApplicationTests.cs (1)
1525using var client2 = new HttpClient(new SocketsHttpHandler
Aspire.Seq (1)
SeqHealthCheck.cs (1)
14readonly HttpClient _client = new(new SocketsHttpHandler { ActivityHeadersPropagator = null }) { BaseAddress = new Uri(seqUri) };
dotnet-sourcelink (1)
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
293httpClient = new HttpClient(clientHandler);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthPostConfigureOptions.cs (1)
38options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Testing (2)
ServiceFakesHostExtensions.cs (2)
49return new HttpClient(httpHandler) { BaseAddress = uri }; 55return new HttpClient(handler) { BaseAddress = uri };
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
152using (var httpClient = new HttpClient(handler))
Microsoft.Extensions.AI.OpenAI.Tests (107)
OpenAIAssistantChatClientIntegrationTests.cs (1)
107using HttpClient client = new(new HttpClientHandler
OpenAIChatClientTests.cs (23)
152using HttpClient httpClient = new(handler); 231using HttpClient httpClient = new(handler); 329using HttpClient httpClient = new(handler); 382using HttpClient httpClient = new(handler); 459using HttpClient httpClient = new(handler); 542using HttpClient httpClient = new(handler); 616using HttpClient httpClient = new(handler); 725using HttpClient httpClient = new(handler); 816using HttpClient httpClient = new(handler); 923using HttpClient httpClient = new(handler); 1019using HttpClient httpClient = new(handler); 1138using HttpClient httpClient = new(handler); 1222using HttpClient httpClient = new(handler); 1321using HttpClient httpClient = new(handler); 1461using HttpClient httpClient = new(handler); 1581using HttpClient httpClient = new(handler); 1628using HttpClient httpClient = new(handler); 1676using HttpClient httpClient = new(handler); 1722using HttpClient httpClient = new(handler); 1861using HttpClient httpClient = new(handler); 1906using HttpClient httpClient = new(handler); 1956using HttpClient httpClient = new(handler); 2013using HttpClient httpClient = new(handler);
OpenAIEmbeddingGeneratorTests.cs (5)
127using HttpClient httpClient = new(handler); 187using HttpClient httpClient = new(handler); 245using HttpClient httpClient = new(handler); 288using HttpClient httpClient = new(handler); 308using HttpClient httpClient = new(handler);
OpenAIResponseClientTests.cs (73)
150using HttpClient httpClient = new(handler); 293using HttpClient httpClient = new(handler); 426using HttpClient httpClient = new(handler); 552using HttpClient httpClient = new(handler); 657using HttpClient httpClient = new(handler); 797using HttpClient httpClient = new(handler); 890using HttpClient httpClient = new(handler); 996using HttpClient httpClient = new(handler); 1141using HttpClient httpClient = new(handler); 1269using HttpClient httpClient = new(handler); 1403using (HttpClient httpClient = new(handler)) 1524using (HttpClient httpClient = new(handler)) 1769using HttpClient httpClient = new(handler); 2184using HttpClient httpClient = new(handler); 2307using HttpClient httpClient = new(handler); 2379using HttpClient httpClient = new(handler); 2468using HttpClient httpClient = new(handler); 2520using HttpClient httpClient = new(handler); 2615using HttpClient httpClient = new(handler); 2696using HttpClient httpClient = new(handler); 2763using HttpClient httpClient = new(handler); 2887using HttpClient httpClient = new(handler); 3107using HttpClient httpClient = new(handler); 3194using HttpClient httpClient = new(handler); 3263using HttpClient httpClient = new(handler); 3315using HttpClient httpClient = new(handler); 3373using HttpClient httpClient = new(handler); 3432using HttpClient httpClient = new(handler); 3493using HttpClient httpClient = new(handler); 3555using HttpClient httpClient = new(handler); 3618using HttpClient httpClient = new(handler); 3691using HttpClient httpClient = new(handler); 3772using HttpClient httpClient = new(handler); 3853using HttpClient httpClient = new(handler); 3931using HttpClient httpClient = new(handler); 3997using HttpClient httpClient = new(handler); 4058using HttpClient httpClient = new(handler); 4128using HttpClient httpClient = new(handler); 4187using HttpClient httpClient = new(handler); 4243using HttpClient httpClient = new(handler); 4304using HttpClient httpClient = new(handler); 4362using HttpClient httpClient = new(handler); 4419using HttpClient httpClient = new(handler); 4478using HttpClient httpClient = new(handler); 4540using HttpClient httpClient = new(handler); 4596using HttpClient httpClient = new(handler); 4651using HttpClient httpClient = new(handler); 4708using HttpClient httpClient = new(handler); 4765using HttpClient httpClient = new(handler); 4802using HttpClient httpClient = new(handler); 4834using HttpClient httpClient = new(handler); 4878using HttpClient httpClient = new(handler); 4929using HttpClient httpClient = new(handler); 4975using HttpClient httpClient = new(handler); 5010using HttpClient httpClient = new(handler); 5045using HttpClient httpClient = new(handler); 5080using HttpClient httpClient = new(handler); 5118using HttpClient httpClient = new(handler); 5156using HttpClient httpClient = new(handler); 5214using HttpClient httpClient = new(handler); 5257using HttpClient httpClient = new(handler); 5300using HttpClient httpClient = new(handler); 5343using HttpClient httpClient = new(handler); 5418using HttpClient httpClient = new(handler); 5490using HttpClient httpClient = new(handler); 5531using HttpClient httpClient = new(handler); 5585using HttpClient httpClient = new(handler); 5648using HttpClient httpClient = new(handler); 5721using HttpClient httpClient = new(handler); 5821using HttpClient httpClient = new(handler); 5938using HttpClient httpClient = new(handler); 6068using HttpClient httpClient = new(handler); 6122using HttpClient httpClient = new(handler);
OpenAISpeechToTextClientTests.cs (5)
83using HttpClient httpClient = new(handler); 158using HttpClient httpClient = new(handler); 193using HttpClient httpClient = new(handler); 230using HttpClient httpClient = new(handler); 267using HttpClient httpClient = new(handler);
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\HttpClientLoggerTest.cs (14)
70using var client = new HttpClient(handler); 105using var client = new HttpClient(handler); 148using var httpClient = new HttpClient(handler); 237using var client = new HttpClient(handler); 334using var client = new HttpClient(handler); 438using var client = new HttpClient(handler); 554using var client = new HttpClient(handler); 648using var client = new HttpClient(handler); 692using var client = new HttpClient(handler); 735using var client = new HttpClient(handler); 773using var client = new HttpClient(handler); 817using var client = new HttpClient(handler); 923using var client = new HttpClient(handler); 964using var client = new HttpClient(handler);
Microsoft.NET.Build.Containers (1)
Registry\DefaultRegistryAPI.cs (1)
48HttpClient client = new(clientHandler)
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
177using HttpClient client = new(handler);
NuGet.Protocol (1)
HttpSource\HttpSource.cs (1)
397var httpClient = new HttpClient(httpHandler.MessageHandler)
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
138public HttpClient() : this(new HttpClientHandler())
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1692client = new HttpClient(handler);
System.Private.Xml (1)
System\Xml\XmlDownloadManager.cs (1)
43using (var client = new HttpClient(handler))
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
346httpClient = new HttpClient(handler);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
29new(new HttpClientHandler { CheckCertificateRevocationList = true });