close method

void close()

Close the underlying HTTP client.

Only closes the client if it was created internally. If you passed a custom httpClient, you are responsible for closing it.

Implementation

void close() {
  if (_ownsClient) {
    _client.close();
  }
}