def chunk.frame.of

emerging-ezhttp@0.21.0.0 · src/http.bend:1061

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

1061# the frame of a chunk once it is known whether it is empty
1062def chunk.frame.of(+n: U32, empty: Bool) -> Chunk:
1063  match empty:
1064    case True{}:
1065      NoChunk{}
1066    case False{}:
1067      Chunk{chunk.line(n)}

Uses (4)

Used by (1)