EPINetworkingConfiguration
public struct EPINetworkingConfiguration
Configuration struct for EPINetworkingFactory
.
-
The base URL for the networking client.
Declaration
Swift
public let baseURL: String
-
The log level for the networking client.
Declaration
Swift
public let logLevel: EPINetworkingLogLevel
-
The access token provider for setting authorization headers.
Declaration
Swift
public let accessTokenProvider: AccessTokenProviding
-
The closure to be called when authentication updates occur.
Declaration
Swift
public let authenticationUpdate: (NetworkError) -> Void
-
Initializes a new instance of
EPINetworkingConfiguration
.Declaration
Swift
public init( baseURL: String, logLevel: EPINetworkingLogLevel, accessTokenProvider: AccessTokenProviding, authenticationUpdate: @escaping (NetworkError) -> Void )
Parameters
baseURL
The base URL for the networking client.
logLevel
The log level for the networking client.
accessTokenProvider
The access token provider for setting authorization headers.
authenticationUpdate
The closure to be called when authentication updates occur.