def decoded.io

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

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

4250# decoded through the C libraries, for the codings in enc. A body with any other coding stays as sent.
4251def decoded.io(+enc: String, res: Res) -> IO(Result<&1, &1, Err, Res>):
4252  Res{+status, +headers, body} = res
4253  Bytes.Bytes{+len, buf} = body
4254  decoded.io.go(U32.is_zero(len), enc, status, headers, Bytes.Bytes{len, buf})

Uses (8)

Used by (1)