def request.signed

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

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

900# extra, and the headers the signature covers. Host is Http's own, from the same URL.
901def request.signed(extra: Map<&2, List<&2, String>>, date: String, +token: String, got: String & String) -> Map<&2, List<&2, String>>:
902  (auth, hash) = got
903  with.token(token, Http.set(Http.set(Http.set(Http.set(extra, "x-amz-date", date), "x-amz-content-sha256", hash), "authorization", auth), "accept-encoding", "identity"))

Uses (7)

Used by (1)