def hs.parsed
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1279# The head alone, framed as a HEAD response so it stops at the blank line.
1280def hs.parsed(+head: Bool, +k: U32, rest: Bytes.Bytes, f: Frame) -> Hs:
1281 match f:
1282 case FrameDone{res}:
1283 hs.res(head, k, rest, res)
1284 case FrameBad{}:
1285 HsBad{}
1286 case FrameMore{}:
1287 HsBad{}