Class: FaradayMiddleware::AwsSigV4
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- FaradayMiddleware::AwsSigV4
- Includes:
- AwsSigV4Util
- Defined in:
- lib/faraday_middleware/request/aws_sigv4.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = nil) ⇒ AwsSigV4
constructor
A new instance of AwsSigV4.
Methods included from AwsSigV4Util
#seahorse_encode_query, #seahorse_encode_www_form
Constructor Details
#initialize(app, options = nil) ⇒ AwsSigV4
Returns a new instance of AwsSigV4.
10 11 12 13 14 |
# File 'lib/faraday_middleware/request/aws_sigv4.rb', line 10 def initialize(app, = nil) super(app) @signer = Aws::Sigv4::Signer.new() @options = end |
Instance Method Details
#call(env) ⇒ Object
16 17 18 19 |
# File 'lib/faraday_middleware/request/aws_sigv4.rb', line 16 def call(env) sign!(env) @app.call(env) end |