class Awscr::Signer::Signers::V4
- Awscr::Signer::Signers::V4
- Reference
- Object
Overview
Signs a Crystal HTTP::Request using a given scope.
signer = Signer::V4.new("s3", "region", "key", "secret")
signer.sign(request)
signer.sign("some string")
signer.presign(request)
Included Modules
Defined in:
awscr-signer/signers/v4.crConstructors
Instance Method Summary
- #presign(request, encode_path = true)
- #sign(string : String)
-
#sign(request : HTTP::Request, add_sha = true, encode_path = true)
Sign an HTTP::Request
Instance methods inherited from module Awscr::Signer::Signers::Interface
presign(request)
presign,
sign(string : String)sign(request : HTTP::Request) sign
Constructor Detail
def self.new(service : String, region : String, aws_access_key : String, aws_secret_key : String, amz_security_token : String | Nil = nil)
#
Instance Method Detail
Sign an HTTP::Request