Table of Contents

Class HttpClientHandlerFactory

Namespace
Steeltoe.Common.Http.HttpClientPooling
Assembly
Steeltoe.Common.Http.dll

Provides a method to create the primary HttpClientHandler for a named HttpClient.

public sealed class HttpClientHandlerFactory
Inheritance
HttpClientHandlerFactory
Inherited Members

Methods

Create()

Creates a new HttpClientHandler instance.

public HttpClientHandler Create()

Returns

HttpClientHandler

Using(HttpClientHandler)

Uses an existing HttpClientHandler instance. Typically used to pass a mock from tests.

public HttpClientHandlerFactory Using(HttpClientHandler handler)

Parameters

handler HttpClientHandler

The handler to return from Create().

Returns

HttpClientHandlerFactory