okhttp / okhttp3 / Call / cancel

cancel

abstract fun cancel(): Unit

Cancels the request, if possible. Requests that are already complete cannot be canceled.