Authentication

public struct Authentication

A Authentication of RESTful Services.

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

    Declaration

    Swift

    public var credential: URLCredential?
  • Authentication Intializer

    Declaration

    Swift

    public init()

    Return Value

    new Authentication object