Configurable

Represents a Configurable for Alamofire Services. Configuration.default by default.

Create custom Configurable

protocol HTTPBinConfigurable: Configurable { }

extension HTTPBinConfigurable {

  var configuration: Configuration {
    var config = Configuration()
    config.host = "httpbin.org"
    return config
  }

}
  • configuration Default implementation

    The configuration.

    Default Implementation

    Configuration.default

    Declaration

    Swift

    var configuration: Configuration { get }
  • scheme Default implementation

    The scheme.

    Default Implementation

    Configuration.default.scheme

    Declaration

    Swift

    var scheme: String { get }
  • host Default implementation

    The base URL.

    Default Implementation

    Configuration.default.host

    Declaration

    Swift

    var host: String { get }
  • version Default implementation

    The version.

    Default Implementation

    Configuration.default.version

    Declaration

    Swift

    var version: String? { get }
  • queryParameters Default implementation

    The url request parameters.

    Default Implementation

    nil

    Declaration

    Swift

    var queryParameters: [String : Any]? { get }
  • method Default implementation

    The HTTP Method.

    Default Implementation

    Configuration.default.method

    Declaration

    Swift

    var method: HTTPMethod { get }
  • encoding Default implementation

    The request parameter encoding.

    Default Implementation

    Configuration.default.encoding

    Declaration

    Swift

    var encoding: ParameterEncoding { get }
  • parameterEncoder Default implementation

    The request parameter encoder.

    Default Implementation

    Configuration.default.parameterEncoder

    Declaration

    Swift

    var parameterEncoder: ParameterEncoder { get }
  • headers Default implementation

    The HTTP headers.

    Default Implementation

    nil

    Declaration

    Swift

    var headers: HTTPHeaders? { get }
  • credential Default implementation

    The credential.

    Default Implementation

    nil

    Declaration

    Swift

    var credential: URLCredential? { get }
  • acceptableStatusCodes Default implementation

    The acceptable status codes.

    Default Implementation

    nil

    Declaration

    Swift

    var acceptableStatusCodes: [Int]? { get }
  • acceptableContentTypes Default implementation

    The acceptable content types.

    Default Implementation

    nil

    Declaration

    Swift

    var acceptableContentTypes: [String]? { get }
  • pollingInterval Default implementation

    The pollingInterval.

    Default Implementation

    Poll.default.pollingInterval

    Declaration

    Swift

    var pollingInterval: TimeInterval { get }
  • waitsForConnectivity Default implementation

    The waitsForConnectivity.

    Default Implementation

    Reachability.default.waitsForConnectivity

    Declaration

    Swift

    var waitsForConnectivity: Bool { get }
  • eventuallyOperationQueue Default implementation

    The eventually operation queue.

    Default Implementation

    Reachability.default.eventuallyOperationQueue

    Declaration

    Swift

    var eventuallyOperationQueue: OperationQueue { get }
  • networkReachabilityManager Default implementation

    The network reachability manager.

    Default Implementation

    Reachability.default.networkReachabilityManager

    Declaration

    Swift

    var networkReachabilityManager: NetworkReachabilityManager? { get }
  • retryErrorCodes Default implementation

    The retry error codes.

    Default Implementation

    Retry.default.retryErrorCodes

    Declaration

    Swift

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

    The retry interval.

    Default Implementation

    Retry.default.retryInterval

    Declaration

    Swift

    var retryInterval: TimeInterval { get }
  • maxRetryAttempts Default implementation

    The max retry attempts.

    Default Implementation

    Retry.default.maxRetryAttempts

    Declaration

    Swift

    var maxRetryAttempts: Int { get }
  • delegates Default implementation

    The request delegates.

    Default Implementation

    empty

    Declaration

    Swift

    var delegates: [RequestDelegate] { get }