Http2.client.headers.fields.select: def of bend-kit-http2@0.4.0.0 Import: import bend-kit-http2@0.4.0.0/http2.bend as Http2 Lines 959-981 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=959&end_line=981 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.headers.fields.select(interim: Bool, fields: List<&2, Hpack.Field>, s: Stream, tail: List<&1, Stream>, input: Bytes.Bytes, encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply: match interim: case True{}: Stream{+id, send_window, recv_window, local_end, +remote_end, head, headers, partial, body, outgoing} = s client.headers.interim.valid(Bool.not(remote_end), id, fields, Stream{id, send_window, recv_window, local_end, remote_end, head, headers, partial, body, outgoing}, tail, input, encoder, decoder, control) case False{}: Stream{id, send_window, recv_window, local_end, remote_end, head, headers, partial, body, outgoing} = s match remote_end: case True{}: client.complete(Stream{id, send_window, recv_window, local_end, True{}, True{}, List.append(&2, Hpack.Field, headers, fields), partial, body, outgoing}, tail, input, encoder, decoder, control) case False{}: client.ok(Client{input, Con{Stream{id, send_window, recv_window, local_end, False{}, True{}, List.append(&2, Hpack.Field, headers, fields), partial, body, outgoing}, tail}, encoder, decoder, control}) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not 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-http2@0.4.0.0/hpack.bend&name=Field 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.complete https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=client.headers.interim.valid https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=client.ok