def client.rst.stream
bend-kit-http2@0.4.0.0 · http2.bend:801
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
801def client.rst.stream(s: Stream, tail: List<&1, Stream>, +code: U32, input: Bytes.Bytes,
802 encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply:
803 Stream{+id, send_window, recv_window, local_end, remote_end, head, headers, partial, body, outgoing} = s
804 Control{next, +active, frame_max, initial, max_streams, connection, recv,
805 first, ack, continuation, goaway} = control
806 Advanced{Client{input, tail, encoder, decoder,
807 Control{next, (active - 1 : U32), frame_max, initial, max_streams,
808 connection, recv, first, ack, continuation, goaway}}, Nil{}, [Reset{id, code}]}