def authorize
bend-kit-sigv4@0.11.0.1 · sigv4.bend:373
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
373
374def authorize(creds: Credentials, +region: String, +service: String, +date: String, +method: String, +path: String, +q: String, +host: String, payload: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, String & String>):
375 do IO<Result<&1, &1, U32 & String, String & String>>:
376 r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- sha.words(payload)
377 authorize.of(hex.of(r), creds, region, service, date, method, path, q, host)