<PackageReference Include="Microsoft.Net.Http" Version="2.2.15" />

System.Net.Http.HttpMessageHandler

public abstract class HttpMessageHandler : IDisposable
A base type for HTTP message handlers.
protected HttpMessageHandler()

Initializes a new instance of the HttpMessageHandler class.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the HttpMessageHandler and optionally disposes of the managed resources.

public void Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.