porthole Ktor
The Ktor client plugin, for clients not on the OkHttp engine.
HttpClient(CIO) { install(portholeKtor()) }Content copied to clipboard
A client on Ktor's OkHttp engine should use installPorthole on that engine instead: the interceptor sees DNS, connect and TLS as separate phases, which a plugin sitting above the engine cannot.