verifyNotClosed method

void verifyNotClosed()
inherited

Throws a StateError if this client has been closed.

Implementation

void verifyNotClosed() {
  if (isClosed)
    throw StateError(
        'HTTP Client has been closed, can\'t create a new request.');
}