type Hs

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

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

1246# The head scan. Seek: look for the blank line from byte from; k interim heads are behind.
1247# Wait: no blank line yet. Res: the final head, how its body ends, and the bytes after it.
1248type Hs is Type:
1249  HsSeek{buf: Bytes.Bytes, from: U32, k: U32}
1250  HsWait{buf: Bytes.Bytes, k: U32}
1251  HsBad{}
1252  HsRes{res: Res, rb: Rb, rest: Bytes.Bytes}

Uses (4)

Used by (14)