The HttpClient factory is a pattern for configuring and retrieving named HttpClients in a composable way. The HttpClient factory provides extensibility to plug in DelegatingHandlers that address cross-cutting concerns such as service location, load balancing, and reliability. The default HttpClient factory provides built-in diagnostics and logging and manages the lifetimes of connections in a performant way. Commonly used types: System.Net.Http.IHttpClientFactory
dotnet add package Microsoft.Extensions.Http
Install-Package Microsoft.Extensions.Http
| 作者 | Microsoft |
|---|---|
| 项目主页 | https://asp.net/ |
| 许可证 | https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt |
| 最新版本 | 11.0.0-preview.5.26302.115 |