def client.data.connection
bend-kit-http2@0.4.0.0 · http2.bend:1139
import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1139def client.data.connection(valid: Bool, +id: U32, +flags: U32, +len: U32,
1140 payload: Bytes.Bytes, c: Client) -> Reply:
1141 match valid:
1142 case False{}:
1143 client.fail(3, True{}, 0)
1144 case True{}:
1145 Client{input, streams, encoder, decoder, control} = c
1146 content = client.fragment(0, flags, payload)
1147 client.streams.use(streams, id, s => tail =>
1148 client.data.stream(len, has(flags, 1), content, s, tail, input, encoder, decoder, control))