def decoded.both

bend-kit-http@0.38.2.0 · http.bend:4108

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

4108# One copy decodes; the other is the body as sent, for a coding we cannot decode.
4109def decoded.both(+status: U32, +headers: Map<&2, List<&2, String>>, cs: List<&2, String>, r: Bytes.Bytes & Bytes.Bytes) -> Result<&1, &1, Err, Res>:
4110  (a, body) = r
4111  decoded.pick(ce.go(cs, DecOk{a}), status, headers, body)

Uses (13)

Used by (1)