def parse.to.at

emerging-ezhttp@0.22.0.0 · src/http.bend:1457

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

1457# a head that has ended, or the reason it has not
1458def parse.to.at(head: Bool, c: Cut, rest: Cut -> Reply) -> Reply:
1459  match c:
1460    case NoCut{}:
1461      Torn{"the response head has no blank line after it"}
1462    case Cut{before, +after}:
1463      +ls = String.lines(before)
1464      +m = status.of(ls)
1465      parse.to.step(head, ls, m, after, interim.skip(m, after), rest)

Uses (7)

Used by (1)