Http2.client.data.content: def of bend-kit-http2@0.4.0.0 Import: import bend-kit-http2@0.4.0.0/http2.bend as Http2 Lines 1087-1104 of bend-kit-http2@0.4.0.0/http2.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http2@0.4.0.0/http2.bend&start_line=1087&end_line=1104 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes import bend-kit-http2@0.4.0.0/hpack.bend as Hpack def client.data.content(end_stream: Bool, content: Bytes.Bytes, writes: List<&1, Bytes.Bytes>, s: Stream, tail: List<&1, Stream>, input: Bytes.Bytes, encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply: match end_stream: case False{}: Stream{id, send_window, recv_window, local_end, remote_end, head, headers, partial, body, outgoing} = s Advanced{Client{input, Con{Stream{id, send_window, recv_window, local_end, False{}, head, headers, partial, Bytes.append(body, content), outgoing}, tail}, encoder, decoder, control}, writes, Nil{}} case True{}: Stream{id, send_window, recv_window, local_end, remote_end, head, headers, partial, body, outgoing} = s client.after(client.complete(Stream{id, send_window, recv_window, local_end, True{}, head, headers, partial, Bytes.append(body, content), outgoing}, tail, input, encoder, decoder, control), next => extra => events => Advanced{next, List.append(&1, Bytes.Bytes, writes, extra), events}) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=append https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/hpack.bend&name=State 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-http2@0.4.0.0/http2.bend&name=Control https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=Reply https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=Stream https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=client.after https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=client.complete