Table of Contents

Class HttpClientUtility

Namespace
Fluxzy
Assembly
Fluxzy.Core.dll

Utility class for creating HttpClient connected to a Fluxzy instance.

public static class HttpClientUtility
Inheritance
HttpClientUtility
Inherited Members

Methods

CreateHttpClient(IReadOnlyCollection<IPEndPoint>, FluxzySetting, Action<HttpClientHandler>?)

Creates an instance of HttpClient with the specified endpoints and settings.

public static HttpClient CreateHttpClient(IReadOnlyCollection<IPEndPoint> endPoints, FluxzySetting setting, Action<HttpClientHandler>? configureHandler = null)

Parameters

endPoints IReadOnlyCollection<IPEndPoint>

The collection of IPEndPoints to use for the HttpClient.

setting FluxzySetting

The FluxzySetting object containing the settings for the HttpClient.

configureHandler Action<HttpClientHandler>

An optional action to configure the Http handler

Returns

HttpClient

An instance of HttpClient configured with the provided endpoints and settings.

CreateHttpMessageHandler(IReadOnlyCollection<IPEndPoint>, FluxzySetting)

Creates an instance of HttpMessageHandler

public static HttpClientHandler CreateHttpMessageHandler(IReadOnlyCollection<IPEndPoint> endPoints, FluxzySetting setting)

Parameters

endPoints IReadOnlyCollection<IPEndPoint>

The collection of IP endpoints to connect to.

setting FluxzySetting

The Fluxzy setting containing the CA certificate.

Returns

HttpClientHandler

An instance of HttpMessageHandler.