def client.headers.interim.valid

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

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

949def client.headers.interim.valid(valid: Bool, id: U32, fields: List<&2, Hpack.Field>,
950    s: Stream, tail: List<&1, Stream>, input: Bytes.Bytes,
951    encoder: Hpack.State, decoder: Hpack.State, control: Control) -> Reply:
952  match valid:
953    case False{}:
954      client.fail(1, False{}, id)
955    case True{}:
956      Advanced{Client{input, Con{s, tail}, encoder, decoder, control}, Nil{},
957        [Response{id, fields, Bytes.new(0)}]}

Uses (13)

Used by (1)