def parse

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

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

309# A partial header or payload returns Need with the original input intact.
310def parse(max: U32, b: Bytes.Bytes) -> Decode:
311  Bytes.Bytes{+n, buf} = b
312  parse.start(U32.is_lt(n, 9), max, Bytes.Bytes{n, buf})

Uses (5)

Used by (2)