def parse.len

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

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

790# Content-Length when present; else the rest of the connection is the body
791def parse.len(status: U32, headers: List<&2, Header>, m: Maybe<&2, Nat>,
792  body: String) -> Reply:
793  match m:
794    case None{}:
795      Reply{status, headers, body}
796    case Some{n}:
797      parse.clen(status, headers, n, body)

Uses (8)

Used by (0)

No other definition uses this definition.