Http.decoded: def of bend-kit-http@0.38.2.0 Import: import bend-kit-http@0.38.2.0/http.bend as Http Lines 4127-4131 of bend-kit-http@0.38.2.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.2.0/http.bend&start_line=4127&end_line=4131 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # The body decoded per Content-Encoding; the headers stay as sent. A corrupt body is ErrBad. def decoded(res: Res) -> Result<&1, &1, Err, Res>: Res{+status, +headers, body} = res Bytes.Bytes{+len, buf} = body decoded.go(U32.is_zero(len), status, headers, Bytes.Bytes{len, buf}) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_zero https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=Err https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=Res https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=decoded.go