def parse.clen

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

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

785# a body framed by Content-Length (RFC 9110 §8.6 / RFC 9112 §6.3)
786def parse.clen(status: U32, headers: List<&2, Header>, +n: Nat, +body: String)
787  -> Reply:
788  parse.short(status, headers, n, body, Nat.is_lt(octs.len(body), n))

Uses (9)

Used by (2)