Retry
public struct Retry
A Retry of RESTful Services.
var retry = Retry()
retry.retryErrorCodes = [.timedOut,.networkConnectionLost]
retry.retryInterval = 20
retry.maxRetryAttempts = 10
-
The retry error codes.
NSURLErrorTimedOut, NSURLErrorCannotFindHost, NSURLErrorCannotConnectToHost, NSURLErrorDNSLookupFailed, NSURLErrorNetworkConnectionLost
by default.Declaration
Swift
public var retryErrorCodes: Set<URLError.Code> = [.timedOut,
-
The retry interval.
10
by default.Declaration
Swift
public var retryInterval: TimeInterval = 10
-
The max retry attempts.
5
by default.Declaration
Swift
public var maxRetryAttempts = 5
-
Retry
IntializerDeclaration
Swift
public init()
Return Value
new
Retry
object