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 implementation

    The eventually.

    Default Implementation

    reachability.eventually

    Declaration

    Swift

    var eventually: Bool
  • eventuallyOperationQueue Default implementation

    The eventually operation queue.

    Default Implementation

    reachability.eventuallyOperationQueue

    Declaration

    Swift

    var eventuallyOperationQueue: OperationQueue
  • networkReachabilityManager Default implementation

    The network reachability manager.

    Default Implementation

    reachability.networkReachabilityManager

    Declaration

    Swift

    var networkReachabilityManager: NetworkReachabilityManager
  • retryErrorCodes Default implementation

    The retry error codes.

    Default Implementation

    retry.retryErrorCodes

    Declaration

    Swift

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

    The retry interval.

    Default Implementation

    retry.retryInterval

    Declaration

    Swift

    var retryInterval: TimeInterval
  • maxRetryAttempts Default implementation

    The max retry attempts.

    Default Implementation

    retry.maxRetryAttempts

    Declaration

    Swift

    var maxRetryAttempts: Int
  • queue Default implementation

    The queue on which reponse will be delivered.

    Default Implementation

    Queueable.queue

    Declaration

    Swift

    var queue: DispatchQueue?