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
endPointsIReadOnlyCollection<IPEndPoint>The collection of IPEndPoints to use for the HttpClient.
settingFluxzySettingThe FluxzySetting object containing the settings for the HttpClient.
configureHandlerAction<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
endPointsIReadOnlyCollection<IPEndPoint>The collection of IP endpoints to connect to.
settingFluxzySettingThe Fluxzy setting containing the CA certificate.
Returns
- HttpClientHandler
An instance of HttpMessageHandler.