abort method
Closes the connection abruptly, which dart:io does for an error added
to the HttpResponse.
Implementation
@override
Future<void> abort(Object error, [StackTrace? stackTrace]) async {
if (_isDetached || _isClosed) return;
_isClosed = true;
rawResponse.addError(abortErrorOf(error), stackTrace);
await rawResponse.done.then((_) {}, onError: (_) {});
await super.close();
}