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
innerHandler
Type: System.Net.Http.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: 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