Share via


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)

Syntax

public static HttpMessageHandler CreatePipeline(
    HttpMessageHandler innerHandler,
    IEnumerable<DelegatingHandler> handlers
)
public:
static HttpMessageHandler^ CreatePipeline(
    HttpMessageHandler^ innerHandler,
    IEnumerable<DelegatingHandler^>^ handlers
)
static member CreatePipeline : 
        innerHandler:HttpMessageHandler *
        handlers:IEnumerable<DelegatingHandler> -> HttpMessageHandler
Public Shared Function CreatePipeline (
    innerHandler As HttpMessageHandler,
    handlers As IEnumerable(Of DelegatingHandler)
) As HttpMessageHandler

Parameters

Return Value

Type: System.Net.Http.HttpMessageHandler

A new instance of the HttpClient which should be pipelined.

See Also

HttpClientFactory Class
System.Net.Http Namespace

Return to top