abort
Signals that the resource fetching should be aborted and eventually closes the underlying I/O stream. This method MAY be called by any thread.
Calling abort() on an already aborted instance has no effect. Calling abort() after all data in the response has been read has no effect.
Any ongoing read operation started with asBytes or asInputStream may abort with an exception if not all data has yet been read from the underlying stream.
Calling asBytes() or asInputStream() after abort() has been called results in an exception.
A consumer using the InputStream
returned from asInputStream may also abort the resource fetching by closing the InputStream with InputStream.close.