ktor-network-tls / io.ktor.network.tls / io.ktor.network.sockets.Connection

Extensions for io.ktor.network.sockets.Connection

tls

suspend fun Connection.tls(coroutineContext: <ERROR CLASS>, config: TLSConfig): Socket

Make Socket connection secure with TLS using TLSConfig.

suspend fun Connection.tls(coroutineContext: <ERROR CLASS>): Socket

Make Socket connection secure with TLS.

suspend fun Connection.tls(coroutineContext: <ERROR CLASS>, block: TLSConfigBuilder.() -> Unit): Socket

Make Socket connection secure with TLS configured with block.