Transport
public protocol Transport
Undocumented
-
timeoutDefault implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
var timeout: TimeInterval { get } -
callbackQueueDefault implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
var callbackQueue: DispatchQueue { get } -
Sends the request and calls back with the data from the response
Declaration
Swift
func send(_ request: URLRequest, completion: @escaping (Result<Data, AdzerkError>) -> Void) -
Sends the request and decodes the response using the provided block
Declaration
Swift
func send<T>(_ request: URLRequest, decode: @escaping (Data) throws -> T, completion: @escaping (Result<T, AdzerkError>) -> Void)
View on GitHub
Transport Protocol Reference