Pipeline class

A Pipeline class containing HTTP request policies. You can create a default Pipeline by calling MapsURL.newPipeline(). Or you can create a Pipeline with your own policies by the constructor of Pipeline. Refer to MapsURL.newPipeline() and provided policies as reference before implementing your customized Pipeline.

Constructors

Pipeline(RequestPolicyFactory[], IPipelineOptions)

Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.

Properties

factories
options

Methods

toServiceClientOptions()

Transfer Pipeline object to ServiceClientOptions object which required by ServiceClient constructor.

Constructor Details

Pipeline(RequestPolicyFactory[], IPipelineOptions)

Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.

new Pipeline(factories: RequestPolicyFactory[], options?: IPipelineOptions)

Parameters

factories
RequestPolicyFactory[]

Property Details

factories

factories: msRest.RequestPolicyFactory[]

Property Value

msRest.RequestPolicyFactory[]

options

options: IPipelineOptions

Property Value

Method Details

toServiceClientOptions()

Transfer Pipeline object to ServiceClientOptions object which required by ServiceClient constructor.

function toServiceClientOptions()

Returns

ServiceClientOptions