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
decodeQueuequeue on which to decode data
interceptorsinterceptor 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
dataErrorError type to use when having error with data
SessionConfiguration Structure Reference