def decoded
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
4127# The body decoded per Content-Encoding; the headers stay as sent. A corrupt body is ErrBad.
4128def decoded(res: Res) -> Result<&1, &1, Err, Res>:
4129 Res{+status, +headers, body} = res
4130 Bytes.Bytes{+len, buf} = body
4131 decoded.go(U32.is_zero(len), status, headers, Bytes.Bytes{len, buf})