def plan.te
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
869# chunked framing, or Content-Length, or the rest of the connection
870def plan.te(status: U32, headers: List<&2, Header>, +lens: List<&2, String>,
871 chunked: Bool) -> Plan:
872 match chunked:
873 case False{}:
874 plan.len(status, headers, digits.read(first(lens)))
875 case True{}:
876 plan.clash(status, headers, clen.any(lens))