Callback

interface Callback<ReqBody : Any, ResBody : Any>

The callback interface for an asynchronous execution of a Call instance.

Functions

Link copied to clipboard
abstract fun onFailure(call: Call<ReqBody, ResBody>, exception: HttpClientException)

Called when

Link copied to clipboard
abstract fun onResponse(call: Call<ReqBody, ResBody>, response: ResBody)

Called when the HTTP response was successfully returned by the remote server.