def parse.chunked

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

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

831# a chunked body, or why the chunk framing was rejected
832def parse.chunked(status: U32, headers: List<&2, Header>, body: String,
833  bad: Maybe<&2, String>) -> Reply:
834  match bad:
835    case None{}:
836      Reply{status, headers, dechunk(body)}
837    case Some{why}:
838      Torn{why}

Uses (7)

Used by (1)