def decoded

bend-kit-http@0.38.5.0 · http.bend:4131

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

4131# The body decoded per Content-Encoding; the headers stay as sent. A corrupt body is ErrBad.
4132def decoded(res: Res) -> Result<&1, &1, Err, Res>:
4133  Res{+status, +headers, body} = res
4134  Bytes.Bytes{+len, buf} = body
4135  decoded.go(U32.is_zero(len), status, headers, Bytes.Bytes{len, buf})

Uses (6)

Used by (1)