def body.of
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
import bend-kit-http@0.38.1.1/http.bend as Http
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1021def body.of(r: Result<&1, &1, Err, Http.Res>) -> Result<&1, &1, Err, Bytes.Bytes>:
1022 match r:
1023 case Fail{e}:
1024 Fail{e}
1025 case Done{res}:
1026 Http.Res{s, h, b} = res
1027 body.encoding(xgzip.fields(Http.fields(h, "content-encoding")), b)