FailedCall

class FailedCall(callFactory: Call.Factory, request: Request, message: String) : Call

A call that must fail because no suitable network is available.

Constructors

Link copied to clipboard
constructor(callFactory: Call.Factory, request: Request, message: String)

Functions

Link copied to clipboard
suspend fun Call.await(): Response

Suspending version of Call.execute built on top of Call.enqueue and suspendCancellableCoroutine.

Link copied to clipboard
open override fun cancel()
Link copied to clipboard
open override fun clone(): Call
Link copied to clipboard
open override fun enqueue(responseCallback: Callback)
Link copied to clipboard
open override fun execute(): Response
Link copied to clipboard
open override fun isCanceled(): Boolean
Link copied to clipboard
open override fun isExecuted(): Boolean
Link copied to clipboard
open override fun request(): Request
Link copied to clipboard
open override fun timeout(): Timeout