close method

void close()

Closes the http client

It's important to close the client when it's done being used, otherwise Dart process can hang

Implementation

void close() {
  httpClient.close();
}