> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# HttpHandlerMode

> Specifies how HttpClient message handlers should be configured when registering HTTP clients. Determines whether handlers are added to existing handlers or r...

## Definition

**Assembly:** CloudNimble.EasyAF.Core.dll

**Namespace:** CloudNimble.EasyAF.Core

**Inheritance:** System.Enum

## Syntax

```csharp theme={"dark"}
CloudNimble.EasyAF.Core.HttpHandlerMode
```

## Summary

Specifies how HttpClient message handlers should be configured when registering HTTP clients.
Determines whether handlers are added to existing handlers or replace them entirely.

## Values

| Name                                                                               | Value | Description                                                        |
| ---------------------------------------------------------------------------------- | ----- | ------------------------------------------------------------------ |
| `None`                                                                             | 0     | No custom message handlers are configured for the HttpClient.      |
| Uses the default handler configuration provided by the HttpClientFactory.          |       |                                                                    |
| `Add`                                                                              | 1     | Adds custom message handlers to the existing handler pipeline.     |
| Custom handlers are appended to any existing handlers already configured.          |       |                                                                    |
| `Replace`                                                                          | 2     | Replaces the entire handler pipeline with custom message handlers. |
| All existing handlers are removed and replaced with the specified custom handlers. |       |                                                                    |
