Http.route.open: def of bend-kit-http@0.38.4.0 Import: import bend-kit-http@0.38.4.0/http.bend as Http Lines 3526-3534 of bend-kit-http@0.38.4.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.4.0/http.bend&start_line=3526&end_line=3534 import Base import bend-kit-dns@0.7.1.0/dns.bend as Dns # offer: send the h2 ALPN offer on a direct TLS connection. def route.open(+ms: U32, offer: Bool, route: Route) -> IO(Result<&1, &1, Err, Conn>): match route: case RouteDirect{tls, +host, port, cert, ca}: do IO>: ips : List<&2, String> <- Dns.resolve.all(host) conn.open.all(tls, ms, host, port, ips, cert, offer, ca) case RouteProxy{tls, host, port, sni, authority, authorization, cert, ca}: proxy.route.open(ms, tls, host, port, sni, authority, authorization, cert, ca) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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-kit-dns@0.7.1.0/dns.bend&name=resolve.all https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=Conn https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=Err https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=Route https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=conn.open.all https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=proxy.route.open