close method
void
close()
Closes the underlying HTTP client if it was created internally and clears any pending in-flight request tracking.
Implementation
void close() {
_inFlightRequests.clear();
if (!_isCustomClient) _client.close();
}