close method

  1. @override
void close()
override

Closes the client.

This terminates all active requests.

Implementation

@override
void close() {
  _isClosed = true;
  for (var xhr in _xhrs) {
    xhr.abort();
  }
  _xhrs.clear();
}