updateConfiguration

suspend fun updateConfiguration(newConfiguration: NetworkClientConfiguration)

Swaps in a new NetworkClientConfiguration, rebuilding the underlying engine. The previous client is closed only once its in-flight requests complete, so reconfiguring mid-request is safe.