Configurable
public protocol Configurable : Authenticable, Pollable, Qosable, QueuePriortizable, Queueable, Reachable, RequestDelegate, Retryable, SessionManagable, Validatable
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 implementationThe
configuration
.Default Implementation
Configuration.default
Declaration
Swift
var configuration: Configuration { get }
-
scheme
Default implementationThe scheme.
Default Implementation
Configuration.default.scheme
Declaration
Swift
var scheme: String { get }
-
host
Default implementationThe base URL.
Default Implementation
Configuration.default.host
Declaration
Swift
var host: String { get }
-
version
Default implementationThe version.
Default Implementation
Configuration.default.version
Declaration
Swift
var version: String? { get }
-
queryParameters
Default implementationThe url request parameters.
Default Implementation
nil
Declaration
Swift
var queryParameters: [String : Any]? { get }
-
method
Default implementationThe HTTP Method.
Default Implementation
Configuration.default.method
Declaration
Swift
var method: HTTPMethod { get }
-
encoding
Default implementationThe request parameter encoding.
Default Implementation
Configuration.default.encoding
Declaration
Swift
var encoding: ParameterEncoding { get }
-
parameterEncoder
Default implementationThe request parameter encoder.
Default Implementation
Configuration.default.parameterEncoder
Declaration
Swift
var parameterEncoder: ParameterEncoder { get }
-
headers
Default implementationThe HTTP headers.
Default Implementation
nil
Declaration
Swift
var headers: HTTPHeaders? { get }
-
credential
Default implementationThe credential.
Default Implementation
nil
Declaration
Swift
var credential: URLCredential? { get }
-
acceptableStatusCodes
Default implementationThe acceptable status codes.
Default Implementation
nil
Declaration
Swift
var acceptableStatusCodes: [Int]? { get }
-
acceptableContentTypes
Default implementationThe acceptable content types.
Default Implementation
nil
Declaration
Swift
var acceptableContentTypes: [String]? { get }
-
pollingInterval
Default implementationThe pollingInterval.
Default Implementation
Poll.default.pollingInterval
Declaration
Swift
var pollingInterval: TimeInterval { get }
-
waitsForConnectivity
Default implementationThe waitsForConnectivity.
Default Implementation
Reachability.default.waitsForConnectivity
Declaration
Swift
var waitsForConnectivity: Bool { get }
-
eventuallyOperationQueue
Default implementationThe eventually operation queue.
Default Implementation
Reachability.default.eventuallyOperationQueue
Declaration
Swift
var eventuallyOperationQueue: OperationQueue { get }
-
networkReachabilityManager
Default implementationThe network reachability manager.
Default Implementation
Reachability.default.networkReachabilityManager
Declaration
Swift
var networkReachabilityManager: NetworkReachabilityManager? { get }
-
retryErrorCodes
Default implementationThe retry error codes.
Default Implementation
Retry.default.retryErrorCodes
Declaration
Swift
var retryErrorCodes: Set<URLError.Code> { get }
-
retryInterval
Default implementationThe retry interval.
Default Implementation
Retry.default.retryInterval
Declaration
Swift
var retryInterval: TimeInterval { get }
-
maxRetryAttempts
Default implementationThe max retry attempts.
Default Implementation
Retry.default.maxRetryAttempts
Declaration
Swift
var maxRetryAttempts: Int { get }
-
delegates
Default implementationThe request delegates.
Default Implementation
empty
Declaration
Swift
var delegates: [RequestDelegate] { get }