240 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.JwtBearer (1)
JwtBearerPostConfigureOptions.cs (1)
54options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthPostConfigureOptions.cs (1)
38options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectPostConfigureOptions.cs (1)
70options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterPostConfigureOptions.cs (1)
48options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationPostConfigureOptions.cs (1)
65options.Backchannel = new HttpClient(options.BackchannelHttpHandler ?? new HttpClientHandler());
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
654var httpClient = new HttpClient(httpMessageHandler);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
754client = new HttpClient(handlers[0]);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentResult.cs (1)
65new HttpClient(new LoggingHandler(_loggerFactory, baseHandler))
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
96var httpClient = new HttpClient(new HttpClientHandler()
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
48return new HttpClient(handler)
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
183return new HttpClient(CreateHandler())
Microsoft.AspNetCore.Testing (2)
..\..\..\..\src\Libraries\Microsoft.AspNetCore.Testing\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.DotNet.Cli.Telemetry (1)
Implementation\HttpTelemetryUploadTransport.cs (1)
34: this(trackUri, new HttpClient(handler) { Timeout = System.Threading.Timeout.InfiniteTimeSpan })
Microsoft.Extensions.AI.OpenAI.Tests (169)
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAIAssistantChatClientIntegrationTests.cs (1)
106using HttpClient client = new(new HttpClientHandler
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\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); 1223using HttpClient httpClient = new(handler); 1322using HttpClient httpClient = new(handler); 1462using HttpClient httpClient = new(handler); 1582using HttpClient httpClient = new(handler); 1629using HttpClient httpClient = new(handler); 1677using HttpClient httpClient = new(handler); 1723using HttpClient httpClient = new(handler); 1862using HttpClient httpClient = new(handler); 1907using HttpClient httpClient = new(handler); 1957using HttpClient httpClient = new(handler); 2025using HttpClient httpClient = new(handler);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\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);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAIHostedFileClientTests.cs (21)
108using HttpClient httpClient = new(handler); 145using HttpClient httpClient = new(handler); 198using HttpClient httpClient = new(handler); 217using HttpClient httpClient = new(handler); 257using HttpClient httpClient = new(handler); 294using HttpClient httpClient = new(handler); 315using HttpClient httpClient = new(handler); 337using HttpClient httpClient = new(handler); 349using HttpClient httpClient = new(handler); 587using HttpClient httpClient = new(handler); 621using HttpClient httpClient = new(handler); 658using HttpClient httpClient = new(handler); 683using HttpClient httpClient = new(handler); 713using HttpClient httpClient = new(handler); 740using HttpClient httpClient = new(handler); 755using HttpClient httpClient = new(handler); 782using HttpClient httpClient = new(handler); 806using HttpClient httpClient = new(handler); 818using HttpClient httpClient = new(handler); 843using HttpClient httpClient = new(handler); 867using HttpClient httpClient = new(handler);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAIRequestPoliciesTests.cs (3)
89using var http = new HttpClient(handler); 105using var http = new HttpClient(handler); 121using var http = new HttpClient(handler);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAIResponseClientTests.cs (99)
150using HttpClient httpClient = new(handler); 293using HttpClient httpClient = new(handler); 423using HttpClient httpClient = new(handler); 549using HttpClient httpClient = new(handler); 623using HttpClient httpClient = new(handler); 743using HttpClient httpClient = new(handler); 883using HttpClient httpClient = new(handler); 978using HttpClient httpClient = new(handler); 1085using HttpClient httpClient = new(handler); 1230using HttpClient httpClient = new(handler); 1358using HttpClient httpClient = new(handler); 1492using (HttpClient httpClient = new(handler)) 1613using (HttpClient httpClient = new(handler)) 1752using HttpClient httpClient = new(handler); 1980using HttpClient httpClient = new(handler); 2393using HttpClient httpClient = new(handler); 2600using HttpClient httpClient = new(handler); 2711using HttpClient httpClient = new(handler); 2801using HttpClient httpClient = new(handler); 2873using HttpClient httpClient = new(handler); 2962using HttpClient httpClient = new(handler); 3014using HttpClient httpClient = new(handler); 3109using HttpClient httpClient = new(handler); 3190using HttpClient httpClient = new(handler); 3257using HttpClient httpClient = new(handler); 3381using HttpClient httpClient = new(handler); 3601using HttpClient httpClient = new(handler); 3688using HttpClient httpClient = new(handler); 3757using HttpClient httpClient = new(handler); 3809using HttpClient httpClient = new(handler); 3867using HttpClient httpClient = new(handler); 3926using HttpClient httpClient = new(handler); 3987using HttpClient httpClient = new(handler); 4049using HttpClient httpClient = new(handler); 4112using HttpClient httpClient = new(handler); 4185using HttpClient httpClient = new(handler); 4266using HttpClient httpClient = new(handler); 4337using HttpClient httpClient = new(handler); 4407using HttpClient httpClient = new(handler); 4484using HttpClient httpClient = new(handler); 4562using HttpClient httpClient = new(handler); 4628using HttpClient httpClient = new(handler); 4689using HttpClient httpClient = new(handler); 4759using HttpClient httpClient = new(handler); 4818using HttpClient httpClient = new(handler); 4874using HttpClient httpClient = new(handler); 4935using HttpClient httpClient = new(handler); 4993using HttpClient httpClient = new(handler); 5050using HttpClient httpClient = new(handler); 5109using HttpClient httpClient = new(handler); 5171using HttpClient httpClient = new(handler); 5227using HttpClient httpClient = new(handler); 5282using HttpClient httpClient = new(handler); 5339using HttpClient httpClient = new(handler); 5396using HttpClient httpClient = new(handler); 5433using HttpClient httpClient = new(handler); 5465using HttpClient httpClient = new(handler); 5509using HttpClient httpClient = new(handler); 5562using HttpClient httpClient = new(handler); 5610using HttpClient httpClient = new(handler); 5645using HttpClient httpClient = new(handler); 5680using HttpClient httpClient = new(handler); 5715using HttpClient httpClient = new(handler); 5753using HttpClient httpClient = new(handler); 5791using HttpClient httpClient = new(handler); 5849using HttpClient httpClient = new(handler); 5892using HttpClient httpClient = new(handler); 5935using HttpClient httpClient = new(handler); 5978using HttpClient httpClient = new(handler); 6053using HttpClient httpClient = new(handler); 6125using HttpClient httpClient = new(handler); 6166using HttpClient httpClient = new(handler); 6220using HttpClient httpClient = new(handler); 6283using HttpClient httpClient = new(handler); 6356using HttpClient httpClient = new(handler); 6456using HttpClient httpClient = new(handler); 6573using HttpClient httpClient = new(handler); 6703using HttpClient httpClient = new(handler); 6767using HttpClient httpClient = new(handler); 6842using HttpClient httpClient = new(handler); 7124using HttpClient httpClient = new(handler); 7251using HttpClient httpClient = new(handler); 7361using HttpClient httpClient = new(handler); 7445using HttpClient httpClient = new(handler); 7537using HttpClient httpClient = new(handler); 7607using HttpClient httpClient = new(handler); 7713using HttpClient httpClient = new(handler); 7814using HttpClient httpClient = new(handler); 7919using HttpClient httpClient = new(handler); 8019using HttpClient httpClient = new(handler); 8106using HttpClient httpClient = new(handler); 8197using HttpClient httpClient = new(handler); 8282using HttpClient httpClient = new(handler); 8395using HttpClient httpClient = new(handler); 8494using HttpClient httpClient = new(handler); 8599using HttpClient httpClient = new(handler); 8712using HttpClient httpClient = new(handler); 8817using HttpClient httpClient = new(handler); 8910using HttpClient httpClient = new(handler);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAISpeechToTextClientTests.cs (10)
86using HttpClient httpClient = new(handler); 161using HttpClient httpClient = new(handler); 196using HttpClient httpClient = new(handler); 233using HttpClient httpClient = new(handler); 270using HttpClient httpClient = new(handler); 312using HttpClient httpClient = new(handler); 399using HttpClient httpClient = new(handler); 430using HttpClient httpClient = new(handler); 463using HttpClient httpClient = new(handler); 496using HttpClient httpClient = new(handler);
..\..\..\..\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAITextToSpeechClientTests.cs (7)
78using HttpClient httpClient = new(handler); 106using HttpClient httpClient = new(handler); 135using HttpClient httpClient = new(handler); 168using HttpClient httpClient = new(handler); 198using HttpClient httpClient = new(handler); 262using HttpClient httpClient = new(handler); 307using HttpClient httpClient = new(handler);
Microsoft.Extensions.Http.Diagnostics.Tests (14)
..\..\..\..\test\Libraries\Microsoft.Extensions.Http.Diagnostics.Tests\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)
143public 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 });