type Sh
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
4886# Head read state: still scanning, cut short or bad, or the head with the bytes after it.
4887# none: no response byte arrived, so a reused socket may be stale.
4888type Sh is Type:
4889 ShMore{buf: Bytes.Bytes, k: U32}
4890 ShBad{err: Maybe<&2, Err>, none: Bool}
4891 ShRes{res: Res, rb: Rb, rest: Bytes.Bytes}