Net.Tls.open.route: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/net.bend as Net Lines 123-133 of bend-kube-runtime@0.2.0.0/src/net.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&start_line=123&end_line=133 import Base import bend-kube-runtime@0.2.0.0/src/proxy.bend as P def Tls.open.route(r: P.Route, +host: String, +port: U32, ca: String, cert: String, key: String, +ms: U32) -> IO(Res(Socket)): match r: case P.Direct{}: IO.bind(Res(Socket), Res(Socket), Tls.dial(host, port, ms), d => Tls.open.direct(d, host, ca, cert, key, ms)) case P.Via{P.Proxy{ph, pp, auth}}: IO.bind(Res(Socket), Res(Socket), Tls.dial(ph, pp, ms), d => Tls.open.proxied(d, P.Proxy.connect(host, port, auth), host, ca, cert, key, ms)) case P.NoRoute{why}: IO.pure(Res(Socket), Fail{(22, why)}) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Socket https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&name=Res https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&name=Tls.dial https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&name=Tls.open.direct https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&name=Tls.open.proxied https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Proxy https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Proxy.connect https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Route