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 (final xhr in xhrs) {
      xhr.abort();
    }
  }
  xhrs.clear();
}