UNPKG

@azure/core-rest-pipeline

Version:

Isomorphic client library for making HTTP requests in node.js and browser.

17 lines 780 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { systemErrorRetryPolicy as tspSystemErrorRetryPolicy, systemErrorRetryPolicyName as tspSystemErrorRetryPolicyName, } from "@typespec/ts-http-runtime/internal/policies"; /** * Name of the {@link systemErrorRetryPolicy} */ export const systemErrorRetryPolicyName = tspSystemErrorRetryPolicyName; /** * A retry policy that specifically seeks to handle errors in the * underlying transport layer (e.g. DNS lookup failures) rather than * retryable error codes from the server itself. * @param options - Options that customize the policy. */ export function systemErrorRetryPolicy(options = {}) { return tspSystemErrorRetryPolicy(options); } //# sourceMappingURL=systemErrorRetryPolicy.js.map