close

open override fun close()

Closes the owned HTTP client and releases resources.

When an injected client was provided (testing), it is not closed — the caller retains ownership. After calling close, this client instance should not be used again.