def client.headers.accumulate

bend-kit-http2@0.4.0.0 · http2.bend:1022

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
import bend-kit-http2@0.4.0.0/hpack.bend as Hpack

1022def client.headers.accumulate(end_headers: Bool, fragment: Bytes.Bytes,
1023    s: Stream, tail: List<&1, Stream>, input: Bytes.Bytes,
1024    encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply:
1025  Stream{id, send_window, recv_window, local_end, remote_end, head,
1026    headers, partial, body, outgoing} = s
1027  client.headers.finish(end_headers,
1028    Stream{id, send_window, recv_window, local_end, remote_end, head,
1029      headers, client.fragments.join(partial, fragment), body, outgoing},
1030    tail, input, encoder, decoder, control)

Uses (9)

Used by (2)