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
Using(HttpClientHandler)
Uses an existing HttpClientHandler instance. Typically used to pass a mock from tests.
public HttpClientHandlerFactory Using(HttpClientHandler handler)
Parameters
handlerHttpClientHandlerThe handler to return from Create().