def client.request.done
bend-kit-http2@0.4.0.0 · http2.bend:444
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
444def client.request.done(sent: BodySent, headers: List<&1, Bytes.Bytes>, encoder: Hpack.State, c: Client) -> Reply:
445 BodySent{remaining, ended, stream_window, connection_window, data} = sent
446 Client{input, streams, old, decoder,
447 Control{+next, +active, frame_max, initial, max_streams, previous, recv_window, first, ack, continuation, goaway}} = c
448 Advanced{Client{input,
449 Con{Stream{next, stream_window, 65535, ended, False{}, False{}, Nil{}, Bytes.new(0), Bytes.new(0), remaining}, streams},
450 encoder, decoder,
451 Control{(next + 2 : U32), (active + 1 : U32), frame_max, initial, max_streams,
452 connection_window, recv_window, first, ack, continuation, goaway}},
453 List.append(&1, Bytes.Bytes, headers, data), Nil{}}