Transport

public protocol Transport

Undocumented

  • timeout Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var timeout: TimeInterval { get }
  • callbackQueue Default implementation

    Undocumented

    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)