AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Seahorse::Client::Plugins::Endpoint::Handler

Inherits:
Handler
  • Object
show all
Defined in:
aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb

Instance Attribute Summary

Attributes inherited from Handler

#handler

Instance Method Summary collapse

Methods inherited from Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



39
40
41
42
# File 'aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb', line 39

def call(context)
  context.http_request.endpoint = URI.parse(context.config.endpoint.to_s)
  @handler.call(context)
end