def parse.to.step

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

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import 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)))

Uses (11)

Used by (1)