def plan.len
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
861# Content-Length when it reads as a number; else the rest of the connection
862def plan.len(status: U32, headers: List<&2, Header>, m: Maybe<&2, Nat>) -> Plan:
863 match m:
864 case None{}:
865 Planned{status, headers, Closed{}}
866 case Some{n}:
867 Planned{status, headers, Sized{n}}