def chunks.ended.data
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
1302# a chunk that has all arrived: on to the next chunk header, else not yet
1303def chunks.ended.data(+after: String, +n: Nat, ready: Bool,
1304 rest: Cut -> Bool) -> Bool:
1305 match ready:
1306 case False{}:
1307 False{}
1308 case True{}:
1309 rest(divide(octs.drop(after, Nat.add(n, 2n)), "\r\n"))