close method

  1. @override
void close()
inherited

Closes the client.

This terminates all active requests, which may cause them to throw RequestAbortedException or ClientException.

Implementation

@override
void close() {
  for (final abortController in _openRequestAbortControllers) {
    abortController.abort();
  }
  _isClosed = true;
}