function createPipelineFromOptions(options) {
    const pipeline = createEmptyPipeline();
    if (isNode) {
        pipeline.addPolicy(proxyPolicy(options.proxyOptions));
        pipeline.addPolicy(decompressResponsePolicy());
    }
    pipeline.addPolicy(formDataPolicy());
    pipeline.addPolicy(tracingPolicy(options.userAgentOptions));
    pipeline.addPolicy(userAgentPolicy(options.userAgentOptions));
    pipeline.addPolicy(setClientRequestIdPolicy());
    pipeline.addPolicy(throttlingRetryPolicy(), { phase: "Retry" });
    pipeline.addPolicy(systemErrorRetryPolicy(options.retryOptions), { phase: "Retry" });
    pipeline.addPolicy(exponentialRetryPolicy(options.retryOptions), { phase: "Retry" });
    pipeline.addPolicy(redirectPolicy(options.redirectOptions), { afterPhase: "Retry" });
    pipeline.addPolicy(logPolicy(options.loggingOptions), { afterPhase: "Retry" });
    return pipeline;
}
/**
 * Create a new pipeline with a default set of customizable policies.
 * @param options - Options to configure a custom pipeline.
 */
Create a new pipeline with a default set of customizable policies.
@param options - Options to configure a custom pipeline.
Create a new pipeline with a default set of customizable policies . @param options - Options to configure a custom pipeline .
function createPipelineFromOptions(options) {
    const pipeline = createEmptyPipeline();
    if (isNode) {
        pipeline.addPolicy(proxyPolicy(options.proxyOptions));
        pipeline.addPolicy(decompressResponsePolicy());
    }
    pipeline.addPolicy(formDataPolicy());
    pipeline.addPolicy(tracingPolicy(options.userAgentOptions));
    pipeline.addPolicy(userAgentPolicy(options.userAgentOptions));
    pipeline.addPolicy(setClientRequestIdPolicy());
    pipeline.addPolicy(throttlingRetryPolicy(), { phase: "Retry" });
    pipeline.addPolicy(systemErrorRetryPolicy(options.retryOptions), { phase: "Retry" });
    pipeline.addPolicy(exponentialRetryPolicy(options.retryOptions), { phase: "Retry" });
    pipeline.addPolicy(redirectPolicy(options.redirectOptions), { afterPhase: "Retry" });
    pipeline.addPolicy(logPolicy(options.loggingOptions), { afterPhase: "Retry" });
    return pipeline;
}
function createPipelineFromOptions ( options ) { const pipeline = createEmptyPipeline ( ) ; if ( isNode ) { pipeline . addPolicy ( proxyPolicy ( options . proxyOptions ) ) ; pipeline . addPolicy ( decompressResponsePolicy ( ) ) ; } pipeline . addPolicy ( formDataPolicy ( ) ) ; pipeline . addPolicy ( tracingPolicy ( options . userAgentOptions ) ) ; pipeline . addPolicy ( userAgentPolicy ( options . userAgentOptions ) ) ; pipeline . addPolicy ( setClientRequestIdPolicy ( ) ) ; pipeline . addPolicy ( throttlingRetryPolicy ( ) , { phase : "Retry" } ) ; pipeline . addPolicy ( systemErrorRetryPolicy ( options . retryOptions ) , { phase : "Retry" } ) ; pipeline . addPolicy ( exponentialRetryPolicy ( options . retryOptions ) , { phase : "Retry" } ) ; pipeline . addPolicy ( redirectPolicy ( options . redirectOptions ) , { afterPhase : "Retry" } ) ; pipeline . addPolicy ( logPolicy ( options . loggingOptions ) , { afterPhase : "Retry" } ) ; return pipeline ; }
Create a new pipeline with a default set of customizable policies.
Create a new pipeline with a default set of customizable policies .