sendSync

open fun sendSync(restRequest: RestRequest): RestResponse

Send the given restRequest synchronously and return a RestResponse Note: Cannot be used by code on the UI thread (use sendAsync instead).

Return

Parameters

restRequest

Throws


open fun sendSync(restRequest: RestRequest, interceptors: Array<Interceptor>): RestResponse

Send the given restRequest synchronously and return a RestResponse Note: Cannot be used by code on the UI thread (use sendAsync instead).

Return

Parameters

restRequest
interceptors

Interceptor(s) to add to the network client before making the request

Throws