<PackageReference Include="Microsoft.Extensions.Http" Version="11.0.0-rc.3.26522.148" />

Microsoft.Extensions.Http.HttpClientFactoryOptions

Provides options for configuring the default IHttpClientFactory.
public TimeSpan HandlerLifetime { get; set; }

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.

Gets a list of operations used to configure an HttpClient.

Gets a list of operations used to configure an HttpMessageHandlerBuilder.

public Func<string, bool> ShouldRedactHeaderValue { get; set; }

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

public bool SuppressHandlerScope { get; set; }

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.