def frame.agree

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

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

1273# Content-Length values that agree frame the body; any others leave the close
1274def frame.agree(+lens: List<&2, String>, ok: Bool) -> Frame:
1275  match ok:
1276    case False{}:
1277      Closed{}
1278    case True{}:
1279      frame.sized(digits.read(first(lens)))

Uses (7)

Used by (1)