Http.conn.secure.file: def of bend-kit-http@0.38.4.0 Import: import bend-kit-http@0.38.4.0/http.bend as Http Lines 2833-2845 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=2833&end_line=2845 import Base import bend-kit-wire@0.4.8.0/wire.bend as Wire def conn.secure.file(offer: Bool, s: Socket, host: String, +ms: U32, +ca: String) -> IO(Result<&1, &1, Err, Conn>): match offer: case True{}: do IO>: hs : Socket & Result<&1, &1, U32 & String, String> <- Wire.tls.connect.alpn.ca(s, host, ms, "h2,http/1.1", ca) conn.tls.alpn(hs) case False{}: do IO>: hs : Socket & Result<&1, &1, U32 & String, Unit> <- Wire.tls.connect.ca(s, host, ms, ca) conn.tls(hs) Uses (15): 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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=Base/base.bend&name=Unit 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=conn.tls https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=conn.tls.alpn https://jend.leeeet.dev/definition.txt?path=bend-kit-wire@0.4.8.0/wire.bend&name=tls.connect.alpn.ca https://jend.leeeet.dev/definition.txt?path=bend-kit-wire@0.4.8.0/wire.bend&name=tls.connect.ca