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
957
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)