Jaa


HttpClientFactoryOptions Class

Definition

Provides options for configuring the default IHttpClientFactory.

public ref class HttpClientFactoryOptions
public class HttpClientFactoryOptions
type HttpClientFactoryOptions = class
Public Class HttpClientFactoryOptions
Inheritance
HttpClientFactoryOptions

Constructors

HttpClientFactoryOptions()

Initializes a new instance of the HttpClientFactoryOptions class.

Properties

HandlerLifetime

Gets or 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 of this property is two minutes. Set the lifetime to InfiniteTimeSpan to disable handler expiry.

HttpClientActions

Gets a list of operations used to configure an HttpClient.

HttpMessageHandlerBuilderActions

Gets a list of operations used to configure an HttpMessageHandlerBuilder.

ShouldRedactHeaderValue

Gets or sets the Func<T,TResult> that determines whether to redact the HTTP header value before logging.

SuppressHandlerScope

Gets or sets a value that determines whether the IHttpClientFactory will create a dependency injection scope when building an HttpMessageHandler. If false (default), a scope will be created, otherwise a scope will not be created.

This option is provided for compatibility with existing applications. It is recommended to use the default setting for new applications.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to