close method

Future<void> close()

Releases the underlying HttpClient, unless it was passed in.

Implementation

Future<void> close() async {
  _closed = true;
  if (_ownsClient) {
    _httpClient.close();
  }
}