---
title: "Interface IHttpClientFactory"
slug: "web-sdk--stylelabs.m.sdk.webclient.http.ihttpclientfactory"
abstract: ""
---
# Interface IHttpClientFactory

Defines the factory.

## Namespace: StylelabsStylelabs.MSdkWebClientHttp

## Assembly: Stylelabs.M.Sdk.WebClient.dll

## Syntax

```csharp
public interface IHttpClientFactory
```

## Methods

### CreateHttpClient(Uri, IDelegatingHandlerFactory)

Creates an .

#### Declaration

```csharp
HttpClient CreateHttpClient(Uri endpoint, IDelegatingHandlerFactory handlerFactory)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| Uri | endpoint | The endpoint. |
| [IDelegatingHandlerFactory](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.http.idelegatinghandlerfactory.html) | handlerFactory | The handler factory. |

#### Returns

| Type | Description |
| --- | --- |
| HttpClient | A instance of . |
