Scoop API

scoop:scoop.tls:0.1.0

TlsClientContext

class TlsClientContext

source · line 16
public
public class TlsClientContext private constructor(private val state: ContextState) : Closeable

Reusable client configuration containing trust roots, protocol options, and an optional client identity. Close the context when no more sessions will be created.

System trust loading is synchronous here. Event-loop code can use scoop.tls.asyncio.openTlsClientContext to offload that work.

function close

source · line 49
public
public override fun close(): Unit

Releases the context's native reference. New sessions cannot be created afterward; repeated closes are allowed.