Table of Contents

Class Ipv4OnlyHttpClientHandler

Namespace
Kepware.Api.Util
Assembly
Kepware.Api.dll

A custom HttpClientHandler that ensures HttpClient only uses IPv4 addresses for DNS resolution.

public class Ipv4OnlyHttpClientHandler : HttpClientHandler, IDisposable
Inheritance
Ipv4OnlyHttpClientHandler
Implements
Inherited Members

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request with the specified request message and cancellation token. Ensures that only IPv4 addresses are used for DNS resolution.