def hs.parsed

bend-kit-http@0.38.4.0 · http.bend:1279

import bend-kit-http@0.38.4.0/http.bend as Http
import 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{}

Uses (6)

Used by (1)