CredentialsPlugin
public final class CredentialsPlugin : PluginType
Provides each request with optional URLCredentials.
-
Undocumented
Declaration
Swift
public typealias CredentialClosure = (TargetType) -> URLCredential?
-
Initializes a CredentialsPlugin.
Declaration
Swift
public init(credentialsClosure: @escaping CredentialClosure)
-
Declaration
Swift
public func willSend(_ request: RequestType, target: TargetType)