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
  }

}
  • waitsForConnectivity Default implementation

    The waitsForConnectivity.

    Default Implementation

    Reachability.default.waitsForConnectivity

    Declaration

    Swift

    var waitsForConnectivity: Bool
  • eventuallyOperationQueue Default implementation

    The eventually operation queue.

    Default Implementation

    Reachability.default.eventuallyOperationQueue

    Declaration

    Swift

    var eventuallyOperationQueue: OperationQueue
  • networkReachabilityManager Default implementation

    The network reachability manager.

    Default Implementation

    Reachability.default.networkReachabilityManager

    Declaration

    Swift

    var networkReachabilityManager: NetworkReachabilityManager
  • retryErrorCodes Default implementation

    The retry error codes.

    Default Implementation

    Retry.default.retryErrorCodes

    Declaration

    Swift

    var retryErrorCodes: Set<URLError.Code>
  • retryInterval Default implementation

    The retry interval.

    Default Implementation

    Retry.default.retryInterval

    Declaration

    Swift

    var retryInterval: TimeInterval
  • maxRetryAttempts Default implementation

    The max retry attempts.

    Default Implementation

    Retry.default.maxRetryAttempts

    Declaration

    Swift

    var maxRetryAttempts: Int