Configurable
public protocol Configurable: AConfigurable, Reachable, Retryable, Queueable
Represents a Configurable
for Restofire.
Configuration.default
by default.
Create custom Configurable
protocol HTTPBinConfigurable: Configurable { }
extension HTTPBinConfigurable {
var configuration: Configuration {
var config = Configuration()
config.host = "httpbin.org"
return config
}
}
-
eventually
Default implementationThe eventually.
Default Implementation
reachability.eventually
Declaration
Swift
var eventually: Bool
-
eventuallyOperationQueue
Default implementationThe eventually operation queue.
Default Implementation
reachability.eventuallyOperationQueue
Declaration
Swift
var eventuallyOperationQueue: OperationQueue
-
networkReachabilityManager
Default implementationThe network reachability manager.
Default Implementation
reachability.networkReachabilityManager
Declaration
Swift
var networkReachabilityManager: NetworkReachabilityManager
-
retryErrorCodes
Default implementationThe retry error codes.
Default Implementation
retry.retryErrorCodes
Declaration
Swift
var retryErrorCodes: Set<URLError.Code>
-
retryInterval
Default implementationThe retry interval.
Default Implementation
retry.retryInterval
Declaration
Swift
var retryInterval: TimeInterval
-
maxRetryAttempts
Default implementationThe max retry attempts.
Default Implementation
retry.maxRetryAttempts
Declaration
Swift
var maxRetryAttempts: Int
-
queue
Default implementationThe queue on which reponse will be delivered.
Default Implementation
Queueable.queue
Declaration
Swift
var queue: DispatchQueue?