def client.request.frames
bend-kit-http2@0.4.0.0 · http2.bend:462
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
462def client.request.frames(m: Maybe<&1, List<&1, Bytes.Bytes>>, body: Bytes.Bytes, encoder: Hpack.State, c: Client) -> Reply:
463 match m:
464 case None{}:
465 Failed{Error{6, True{}, 0}}
466 case Some{headers}:
467 Client{input, streams, old, decoder,
468 +control} = c
469 Control{+next, active, +frame_max, initial, max_streams, +connection, recv_window, first, ack, continuation, goaway} = control
470 client.request.data(client.data(next, frame_max, connection, initial, body),
471 headers, encoder, Client{input, streams, old, decoder, control})