def get
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
1033# GetObject: the object's bytes. A missing key is ErrS3{404, "NoSuchKey", ..}.
1034# ponytail: Hairpin decodes x-gzip; reject it rather than return bytes that differ from the stored object.
1035def get(c: Client, bucket: String, key: String) -> IO(Client & Result<&1, &1, Err, Bytes.Bytes>):
1036 do IO<Client & Result<&1, &1, Err, Bytes.Bytes>>:
1037 x : Client & Result<&1, &1, Err, Http.Res> <- call(c, "GET", bucket, key, "", Http.empty(), Bytes.new(0))
1038 return get.done(x)
Uses (14)
Used by (0)
No other definition uses this definition.