def plan.te

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

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import 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))

Uses (11)

Used by (1)