Partager via


HttpClientFactory.CreatePipeline Method

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

'Declaration
Public Shared Function CreatePipeline ( _
    innerHandler As HttpMessageHandler, _
    handlers As IEnumerable(Of DelegatingHandler) _
) As HttpMessageHandler
'Usage
Dim innerHandler As HttpMessageHandler 
Dim handlers As IEnumerable(Of DelegatingHandler)
Dim returnValue As HttpMessageHandler 

returnValue = HttpClientFactory.CreatePipeline(innerHandler, _
    handlers)
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 static function CreatePipeline(
    innerHandler : HttpMessageHandler, 
    handlers : IEnumerable<DelegatingHandler>
) : HttpMessageHandler

Parameters

  • innerHandler
    Type: HttpMessageHandler

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

Return Value

Type: HttpMessageHandler
A new instance of the HttpClient which should be pipelined.

See Also

Reference

HttpClientFactory Class

System.Net.Http Namespace