execute

suspend fun execute(request: Request): Result<Response>

Executes the specified http Request and suspends until a Response has been received. Any exception thrown when executing the http request is caught and returned as a failure Result object, except kotlinx.coroutines.CancellationExceptions caused by cancelling the running coroutine.

Return

a Result that contains a Response or an error if the http request failed

Since

200.2.0