Http.walk.data: def of emerging-ezhttp@0.22.0.0 Import: import emerging-ezhttp@0.22.0.0/src/http.bend as Http Lines 1535-1542 of emerging-ezhttp@0.22.0.0/src/http.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&start_line=1535&end_line=1542 import Base # a chunk's data: all of what arrived, with octets still owed, or its end def walk.data(+g: Nat, s: Skip, go: String -> Walk) -> Walk: match s: case Short{owed}: Owed{g, owed} case Over{+left, +rest}: walk.crlf(g, left, rest, Bool.and(octs.has(rest, Nat.add(left, 2n)), String.starts_with(rest, "\r\n")), go) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=Skip https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=Walk https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=octs.has https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=walk.crlf