def parse.to.step
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
1448# an interim head is skipped, any other is the final one
1449def parse.to.step(head: Bool, +ls: List<&2, String>, +m: Maybe<&2, U32>,
1450 +after: String, skip: Bool, rest: Cut -> Reply) -> Reply:
1451 match skip:
1452 case True{}:
1453 rest(divide(after, "\r\n\r\n"))
1454 case False{}:
1455 parse.to.final(m, ls, after, Bool.or(head, status.empty(m)))