def conn.h2.start
bend-kit-http@0.38.2.0 · http.bend:2791
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-wire@0.4.7.0/wire.bend as Wire
import bend-kit-http2@0.4.0.0/http2.bend as H2
import bend-kit-bytes@0.3.3.0/bytes.bend as HBytes
2791def conn.h2.start(s: Socket, r: H2.Client & HBytes.Bytes) -> IO(Result<&1, &1, Err, Conn>):
2792 (client, HBytes.Bytes{len, buf}) = r
2793 do IO<Result<&1, &1, Err, Conn>>:
2794 sent : Socket & Result<&1, &1, U32 & String, Unit> <- Wire.tls.send.words(s, len, buf)
2795 conn.h2.sent(client, sent)