HttpClientFactory.CreatePipeline Method (HttpMessageHandler, IEnumerable<DelegatingHandler>)

 

Creates a new instance of the HttpClient which should be pipelined.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public static HttpMessageHandler CreatePipeline(
	HttpMessageHandler innerHandler,
	IEnumerable<DelegatingHandler> handlers
)

Parameters

innerHandler
Type: System.Net.Http.HttpMessageHandler

The inner handler which is responsible for processing the HTTP response messages.

handlers
Type: System.Collections.Generic.IEnumerable<DelegatingHandler>

The list of HTTP handler that delegates the processing of HTTP response messages to another handler.

Return Value

Type: System.Net.Http.HttpMessageHandler

A new instance of the HttpClient which should be pipelined.

Return to top
Show: