def client.goaway.finish

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

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

848def client.goaway.finish(g: Gone, +last: U32, code: U32, input: Bytes.Bytes,
849    encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply:
850  Gone{remaining, count, events} = g
851  Control{next, active, frame_max, initial, max_streams, connection, recv,
852    first, ack, continuation, previous} = control
853  Advanced{Client{input, remaining, encoder, decoder,
854    Control{next, count, frame_max, initial, max_streams, connection, recv,
855      first, ack, continuation, Some{last}}}, Nil{},
856    Con{Shutdown{last, code}, events}}

Uses (10)

Used by (1)