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: HttpMessageHandlerThe 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: HttpMessageHandler
A new instance of the HttpClient which should be pipelined.