HttpResponder

interface HttpResponder

Interface definition for a callback to be invoked when either a response was returned for a requested resource or when an error occurred when requesting the resource.

Inheritors

Functions

Link copied to clipboard
abstract fun handleFailure(type: Int, errorMessage: String)
Invoked when a resource failed to be retrieved.
Link copied to clipboard
abstract fun onResponse(responseCode: Int, eTag: String, lastModified: String, cacheControl: String, expires: String, retryAfter: String, xRateLimitReset: String, body: Array<Byte>)
Invoked when a resource has finished.