Class HttpClientOptions
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
Allows to provide configuration for instances of HttpClient returned by HttpClientFactory
public class HttpClientOptions
- Inheritance
-
HttpClientOptions
- Inherited Members
Properties
ExpireTime
How long until the HttpClient instance will be recycled. Default time is 15 minutes.
public TimeSpan ExpireTime { get; set; }
Property Value
Handler
Custom message handler used by the client.
public HttpMessageHandler Handler { get; set; }
Property Value
Headers
Custom headers always added to the client.
public Dictionary<string, string> Headers { get; set; }