SessionConfiguration
public struct SessionConfiguration
a type defining some parameters for a Session
-
Declaration
Swift
public init( encoder: ContentDataEncoder = JSONEncoder(), decoder: ContentDataDecoder = JSONDecoder(), decodingQueue: DispatchQueue = .main, interceptors: CompositeInterceptor = [])
Parameters
decodeQueue
queue on which to decode data
interceptors
interceptor list to apply on the session requests/responses
-
Declaration
Swift
public init<DataError: Error & Decodable>( encoder: ContentDataEncoder = JSONEncoder(), decoder: ContentDataDecoder = JSONDecoder(), decodingQueue: DispatchQueue = .main, interceptors: CompositeInterceptor = [], dataError: DataError.Type )
Parameters
dataError
Error type to use when having error with data