def wire.read.count
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespecimport Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
240# what to do after a read of m octets, when their count alone decides it;
241# none when their text is needed (wire.read.next) (SPEC.md HTTP-CLI-6)
242def wire.read.count(+h: Http.Hear, +m: Nat) -> Maybe<&2, Read>:
243 wire.read.count.at(h, m, Nat.is_eq(m, 0n))