on Response
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.
Parameters
response Code
http response code
e Tag
http header, identifier for a specific version of a resource
last Modified
http header, used to determine if a resource hasn't been modified since
cache Control
http header, used to determine cache strategy of a resource
expires
http header, used to determine when a resource is stale
retry After
http header, used to indicate when the service is expected to be unavailable to the client
x Rate Limit Reset
http header, used to determine the remaining window before the rate limit resets
body
http response body, in an array of bytes representation