NilCredentials
public struct NilCredentials : ClientCredentials
A type used to indicate that no credentials should be passed for this request. This can be used to override the default credentials for a client, to prevent those credentials from being used for a particular request.
Usage Example:
client.get("/public", credentials: NilCredentials()) { (response: MyResponse?, error: RequestError?) -> Void in
guard let response = response else {
print("failed request: \(error)")
}
print("Successfully recieved \(response)")
}
-
Create an instance that represents no credentials.
Declaration
Swift
public init()
-
Returns an empty dictionary.
Declaration
Swift
public func getHeaders() -> [String : String]