close method

  1. @override
void close({
  1. bool force = false,
})
override

Closes the client.

This terminates all active requests.

Implementation

@override
void close({bool force = false}) {
  if (force) {
    for (var xhr in _xhrs) {
      xhr.abort();
    }
  }
  _xhrs.clear();
}