ClientConfiguration

public struct ClientConfiguration

ClientConfiguration parameters for a Client instance.

  • An instance of ClientConfiguration with sane defaults. This is a singleton instance.

    Declaration

    Swift

    public static let `default`: ClientConfiguration
  • Initializes a ClientConfiguration with default values

    Declaration

    Swift

    public init()
  • Whether or not to use HTTPS connections; defaults to true.

    Declaration

    Swift

    public var secure: Bool
  • An optional configuration to override the date decoding strategy that is provided by the the SDK.

    Declaration

    Swift

    public var dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?
  • An optional configuration to override the TimeZone the SDK will use to decode Date instances. The SDK will use a TimeZone with 0 seconds offset from GMT if this configuration is omitted.

    Declaration

    Swift

    public var timeZone: TimeZone?