AConfigurable
public protocol AConfigurable: _Configurable, Authenticable, RequestDelegate, SessionManagable, Validatable
Represents a Configurable
for Alamofire Services.
Configuration.default
by default.
Create custom Configurable
protocol HTTPBinConfigurable: AConfigurable { }
extension HTTPBinConfigurable {
var configuration: Configuration {
var config = Configuration()
config.host = "httpbin.org"
return config
}
}
-
credential
Default implementationThe credential.
Default Implementation
nil
Declaration
Swift
var credential: URLCredential?
-
acceptableStatusCodes
Default implementationThe acceptable status codes.
Default Implementation
nil
Declaration
Swift
var acceptableStatusCodes: [Int]?
-
acceptableContentTypes
Default implementationThe acceptable content types.
Default Implementation
nil
Declaration
Swift
var acceptableContentTypes: [String]?
-
delegates
Default implementationThe request delegates.
Default Implementation
empty
Declaration
Swift
var delegates: [RequestDelegate]