sendAsync

open fun sendAsync(restRequest: RestRequest, callback: RestClient.AsyncRequestCallback): Call

Send the given restRequest and process the result asynchronously with the given callback. Note: Intended to be used by code on the UI thread.

Return

okHttp Call object (through which you can cancel the request or get the request back)

Parameters

restRequest
callback