Class: Canistor::Handler
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Canistor::Handler
- Defined in:
- lib/canistor/handler.rb
Overview
AWS-SDK compatible handler to mock S3 interaction.
Instance Method Summary collapse
Instance Method Details
#call(context) ⇒ Response
17 18 19 20 21 22 23 24 25 |
# File 'lib/canistor/handler.rb', line 17 def call(context) log(context.config, context.http_request) handle( context, Canistor::Authorization.new(context.http_request.headers['Authorization']), Canistor::Subject.new(context.http_request.endpoint) ) Seahorse::Client::Response.new(context: context) end |