NetworkClient
interface NetworkClient
Utility class for making asynchronous Http requests.
Requests will be made on an IO thread, but any completions will be executed on the Tealium background thread.
Functions
Link copied to clipboard
Adds an interceptor to the client's list of interceptors.
Link copied to clipboard
Removes an interceptor from the client's list of interceptors.
Link copied to clipboard
Sends an HTTP request asynchronously and returns the result to the provided completion block. The request is retried if necessary based on the provided request and the response NetworkResult.
abstract fun sendRequest(request: HttpRequest.Builder, completion: Callback<NetworkResult>): Disposable
Builds the request and sends it asynchronously, returning the result to the provided completion block.