Http.h2.idle.peek: def of bend-kit-http@0.38.4.0 Import: import bend-kit-http@0.38.4.0/http.bend as Http Lines 3633-3643 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=3633&end_line=3643 import Base import bend-kit-wire@0.4.8.0/wire.bend as Wire import bend-kit-http2@0.4.0.0/http2.bend as H2 # Waiting bytes may be PING, SETTINGS, or GOAWAY frames, so the client reads them; EOF fails the read. def h2.idle.peek(client: H2.Client, r: Socket & Bool) -> IO(Took): (s, quiet) = r match quiet: case True{}: IO.pure(Took, TookSeen{True{}, ConnH2{s, client}}) case False{}: do IO: got : Socket & Result<&1, &1, U32 & String, U32 & Array> <- Wire.tls.recv.words(s, 16384, 100) h2.idle.read(client, got) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array 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=IO.pure 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=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-kit-http2@0.4.0.0/http2.bend&name=Client 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=Took https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=h2.idle.read https://jend.leeeet.dev/definition.txt?path=bend-kit-wire@0.4.8.0/wire.bend&name=tls.recv.words