def Tls.open.direct
import bend-kube-runtime@0.2.0.0/src/net.bend as Netimport Base
115def Tls.open.direct(d: Res(Socket), +host: String, ca: String, cert: String, key: String,
116 +ms: U32) -> IO(Res(Socket)):
117 match d:
118 case Done{s}:
119 Tls.secure(s, host, ca, cert, key, ms)
120 case Fail{e}:
121 IO.pure(Res(Socket), Fail{e})