portholeKtor

fun portholeKtor(): ClientPlugin<Unit>(source)

The Ktor client plugin, for clients not on the OkHttp engine.

HttpClient(CIO) { install(portholeKtor()) }

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.