CRE::Aws::SigV4
SigV4 signer per AWS reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html
Constants
ALGORITHM = "AWS4-HMAC-SHA256"
Constructors
Instance methods
sign(method : String, uri : URI, headers : HTTP::Headers, body : String, now : Time = Time.utc) : Nil
Returns the signed Authorization header value plus modified headers. Mutates the headers map in-place to add 'X-Amz-Date', 'Host', 'X-Amz-Content-SHA256', 'X-Amz-Security-Token' (if any), 'Authorization'.