dispose method

void dispose()

Closes the underlying HTTP client and releases any resources.

This should be called when the client is no longer needed to avoid memory leaks.

Implementation

void dispose() {
  _httpClient.close();
}