Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

ConnectionLostRetryPolicy

mattt edited this page Sep 18, 2020 · 2 revisions

ConnectionLostRetryPolicy

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:​ RetryPolicy

Inheritance

RetryPolicy

Initializers

init(retryLimit:​exponentialBackoffBase:​exponentialBackoffScale:​retryableHTTPMethods:​)

Creates 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)

Parameters

  • retryLimit:​ The total number of times the request is allowed to be retried. RetryPolicy.defaultRetryLimit by default.
  • exponentialBackoffBase:​ The base of the exponential backoff policy. RetryPolicy.defaultExponentialBackoffBase by default.
  • exponentialBackoffScale:​ The scale of the exponential backoff. RetryPolicy.defaultExponentialBackoffScale by default.
  • retryableHTTPMethods:​ The idempotent http methods to retry. RetryPolicy.defaultRetryableHTTPMethods by default.
Types
Protocols
Global Typealiases
Clone this wiki locally