MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / get

Function get

aws-example/src/bin/s3.rs:133–142  ·  view source on GitHub ↗
(bucket: &str, client: &Client, key: &str)

Source from the content-addressed store, hash-verified

131}
132
133async fn get(bucket: &str, client: &Client, key: &str) -> Result<Vec<u8>> {
134 let object = client
135 .get_object()
136 .bucket(bucket.to_owned())
137 .key(key)
138 .send()
139 .await?;
140 let data = object.body.collect().await?;
141 Ok(data.to_vec())
142}

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
fetch_locationsFunction · 0.85
fetch_weatherFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
http_timeoutFunction · 0.85
http_server_proxyFunction · 0.85
runFunction · 0.85

Calls 1

sendMethod · 0.45

Tested by 4

http_server_proxyFunction · 0.68
runFunction · 0.68
http_serverFunction · 0.68
weatherFunction · 0.68