abort

fun abort()(source)

The XMLHttpRequest.abort() method aborts the request if it has already been sent.

MDN Reference