ConnectionLostRetryPolicy - SwiftDocOrg/Alamofire GitHub Wiki
A retry policy that automatically retries idempotent requests for network connection lost errors. For more information about retrying network connection lost errors, please refer to Apple's technical document.
open class ConnectionLostRetryPolicy: RetryPolicyCreates a ConnectionLostRetryPolicy instance from the specified parameters.
public init(retryLimit: UInt = RetryPolicy.defaultRetryLimit, exponentialBackoffBase: UInt = RetryPolicy.defaultExponentialBackoffBase, exponentialBackoffScale: Double = RetryPolicy.defaultExponentialBackoffScale, retryableHTTPMethods: Set<HTTPMethod> = RetryPolicy.defaultRetryableHTTPMethods)- retryLimit: The total number of times the request is allowed to be retried.
RetryPolicy.defaultRetryLimitby default. - exponentialBackoffBase: The base of the exponential backoff policy.
RetryPolicy.defaultExponentialBackoffBaseby default. - exponentialBackoffScale: The scale of the exponential backoff.
RetryPolicy.defaultExponentialBackoffScaleby default. - retryableHTTPMethods: The idempotent http methods to retry.
RetryPolicy.defaultRetryableHTTPMethodsby default.