def body.of

bend-kit-sigv4@0.11.0.1 · sigv4.bend:1021

import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4
import 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)

Uses (7)

Used by (1)