共用方式為


Microsoft.Extensions.Http Namespace

Contains classes and abstractions used for configuring HttpClient and HttpMessageHandler in IHttpClientFactory.

Classes

HttpClientFactoryOptions

An options class for configuring the default IHttpClientFactory.

HttpMessageHandlerBuilder

A builder abstraction for configuring HttpMessageHandler instances.

PolicyHttpMessageHandler

A DelegatingHandler implementation that executes request processing surrounded by a Policy.

Interfaces

IHttpMessageHandlerBuilderFilter

Used by the Microsoft.Extensions.Http.DefaultHttpClientFactory to apply additional initialization to the configure the HttpMessageHandlerBuilder immediately before Build() is called.

ITypedHttpClientFactory<TClient>

A factory abstraction for a component that can create typed client instances with custom configuration for a given logical name.