def call.run

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

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-url@0.4.1.0/url.bend as Url
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

956# Object calls require a bucket and a key. ListObjectsV2 targets the bucket with list-type=2.
957# The absolute URL bypasses base resolution, so '.' and '..' in object keys survive.
958def call.run(c: Client, +method: String, +bucket: String, +key: String, +query: String, extra: Map<&2, List<&2, String>>,
959    body: Bytes.Bytes) -> IO(Client & Result<&1, &1, Err, Http.Res>):
960  Client{cfg, http} = c
961  Config{+endpoint, +region, +style, +creds} = cfg
962  do IO<Client & Result<&1, &1, Err, Http.Res>>:
963    date : String <- stamp()
964    call.at(loc(style, bucket, key, Url.absolute(endpoint)), endpoint, region, style, creds, http, method, query, extra, date, body)

Uses (16)

Used by (1)