HttpHandlerMode

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

Syntax

public enum HttpHandlerMode

Fields

Add

Add = 1
Adds custom message handlers to the existing handler pipeline. Custom handlers are appended to any existing handlers already configured.

Returns

HttpHandlerMode

None

None = 0
No custom message handlers are configured for the HttpClient. Uses the default handler configuration provided by the HttpClientFactory.

Returns

HttpHandlerMode

Replace

Replace = 2
Replaces the entire handler pipeline with custom message handlers. All existing handlers are removed and replaced with the specified custom handlers.

Returns

HttpHandlerMode