Authentication

public struct Authentication

An Authentication for RESTful Services.

var authentication = Authentication()
authentication.credential = URLCredential(
    user: "user",
    password: "password",
    persistence: .forSession
)
  • The default authentication.

    Declaration

    Swift

    public static var `default`: Authentication
  • The credential. nil by default.

    Declaration

    Swift

    public var credential: URLCredential?
  • Authentication Intializer

    Declaration

    Swift

    public init()

    Return Value

    new Authentication object