Table of Contents

Class HttpClientFactory

Namespace
NetCoreForce.Client
Assembly
NetCoreForce.Client.dll
public class HttpClientFactory
Inheritance
HttpClientFactory
Inherited Members

Methods

CreateHttpClient(bool, string)

Create an HttpClient, intended to be long-lived and shared.

On .NET 8+ and .NET Framework, pooled connections are periodically replaced so DNS changes are picked up.

public static HttpClient CreateHttpClient(bool useCompression = true, string proxyUrl = null)

Parameters

useCompression bool

Request gzip/deflate compressed responses

proxyUrl string

Proxy URL (Optional)

Returns

HttpClient