NetworkUtilities
public final class NetworkUtilities
Groups the networking utilities for a given Tealium instance onto a single object.
networkClient and networkHelper make a single attempt for each request and never retry it.
Every response still feeds the empirical connectivity of the connectivityManager.
To retry failed requests, derive a client with NetworkClient.newClient(withAdditionalInterceptors:),
adding RequestInterceptors.retryWithBackoff() to retry retryable failures with a backoff and/or
RequestInterceptors.retryWhenConnected(connectivityManager:) to wait for connectivity to return before retrying.
Use NetworkClient.makeNetworkHelper() to send requests through the derived client with the NetworkHelperProtocol API.
-
Helper for standard, uncompressed network operations.
Declaration
Swift
public let networkHelper: NetworkHelperProtocol -
The network client for sending requests — the entry point for custom (e.g. gzipped) requests built with a
RequestBuilderor aURLRequest.Declaration
Swift
public let networkClient: NetworkClient -
Whether the connection is assumed available (
connectionAssumedAvailable) and the system connection state (connection).Declaration
Swift
public let connectivityManager: ConnectivityManagerProtocol
View on GitHub