Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
|
AddHttpMessageHandler(IHttpClientBuilder, Func<IServiceProvider,DelegatingHandler>)
|
Adds a delegate that will be used to create an additional message handler for a named HttpClient.
|
|
AddHttpMessageHandler(IHttpClientBuilder, Func<DelegatingHandler>)
|
Adds a delegate that will be used to create an additional message handler for a named HttpClient.
|
|
AddHttpMessageHandler<THandler>(IHttpClientBuilder)
|
Adds an additional message handler from the dependency injection container for a named HttpClient.
|
|
AddTypedClient<TClient>(IHttpClientBuilder)
|
Configures a binding between the TClient type and the named HttpClient
associated with the IHttpClientBuilder.
|
|
AddTypedClient<TClient>(IHttpClientBuilder, Func<HttpClient,TClient>)
|
Configures a binding between the TClient type and the named HttpClient
associated with the IHttpClientBuilder.
|
|
AddTypedClient<TClient>(IHttpClientBuilder, Func<HttpClient,IServiceProvider,TClient>)
|
Configures a binding between the TClient type and the named HttpClient
associated with the IHttpClientBuilder.
|
|
AddTypedClient<TClient,TImplementation>(IHttpClientBuilder)
|
Configures a binding between the TClient type and the named HttpClient
associated with the IHttpClientBuilder. The created instances will be of type
TImplementation.
|
|
ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>)
|
Adds a delegate that will be used to configure a named HttpClient.
|
|
ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>)
|
Adds a delegate that will be used to configure a named HttpClient.
|
|
ConfigureHttpMessageHandlerBuilder(IHttpClientBuilder, Action<HttpMessageHandlerBuilder>)
|
Adds a delegate that will be used to configure message handlers using HttpMessageHandlerBuilder
for a named HttpClient.
|
|
ConfigurePrimaryHttpMessageHandler(IHttpClientBuilder, Func<IServiceProvider,HttpMessageHandler>)
|
Adds a delegate that will be used to configure the primary HttpMessageHandler for a
named HttpClient.
|
|
ConfigurePrimaryHttpMessageHandler(IHttpClientBuilder, Func<HttpMessageHandler>)
|
Adds a delegate that will be used to configure the primary HttpMessageHandler for a
named HttpClient.
|
|
ConfigurePrimaryHttpMessageHandler<THandler>(IHttpClientBuilder)
|
Configures the primary HttpMessageHandler from the dependency injection container for a named HttpClient.
|
|
RedactLoggedHeaders(IHttpClientBuilder, IEnumerable<String>)
|
Sets the collection of HTTP header names for which values should be redacted before logging.
|
|
RedactLoggedHeaders(IHttpClientBuilder, Func<String,Boolean>)
|
Sets the Func<T,TResult> which determines whether to redact the HTTP header value before logging.
|
|
SetHandlerLifetime(IHttpClientBuilder, TimeSpan)
|
Sets the length of time that a HttpMessageHandler instance can be reused. Each named
client can have its own configured handler lifetime value. The default value is two minutes. Set the lifetime to
InfiniteTimeSpan to disable handler expiry.
|
|
AddPolicyHandler(IHttpClientBuilder, IAsyncPolicy<HttpResponseMessage>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with the provided
IAsyncPolicy`1.
|
|
AddPolicyHandler(IHttpClientBuilder, Func<IServiceProvider,HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a policy returned
by the policySelector.
|
|
AddPolicyHandler(IHttpClientBuilder, Func<IServiceProvider,HttpRequestMessage,
String,IAsyncPolicy<HttpResponseMessage>>, Func<HttpRequestMessage,
String>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a policy returned
by executing provided key selection logic keySelector and policyFactory.
|
|
AddPolicyHandler(IHttpClientBuilder, Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a policy returned
by the policySelector.
|
|
AddPolicyHandlerFromRegistry(IHttpClientBuilder, Func<IReadOnlyPolicyRegistry<String>,HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a policy returned
by the IReadOnlyPolicyRegistry<TKey>.
|
|
AddPolicyHandlerFromRegistry(IHttpClientBuilder, String)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a policy returned
by the IReadOnlyPolicyRegistry<TKey>.
|
|
AddTransientHttpErrorPolicy(IHttpClientBuilder, Func<PolicyBuilder<HttpResponseMessage>,IAsyncPolicy<HttpResponseMessage>>)
|
Adds a PolicyHttpMessageHandler which will surround request execution with a Policy
created by executing the provided configuration delegate. The policy builder will be preconfigured to trigger
application of the policy for requests that fail with conditions that indicate a transient failure.
|