def client.goaway.valid

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

import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base

858def client.goaway.valid(valid: Bool, +last: U32, code: U32, c: Client) -> Reply:
859  match valid:
860    case False{}:
861      client.fail(1, True{}, 0)
862    case True{}:
863      Client{input, streams, encoder, decoder, control} = c
864      client.goaway.finish(client.goaway.filter(streams, last), last, code,
865        input, encoder, decoder, control)

Uses (7)

Used by (1)