A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/Plugins/EndpointDiscovery/Handler.html below:

Handler — AWS SDK for Ruby V2

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

Class: Aws::Plugins::EndpointDiscovery::Handler Attribute Summary collapse Instance Attribute Summary Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Instance Method Details #call(context) ⇒ Object
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/endpoint_discovery.rb', line 53

def call(context)
  if context.operation.endpoint_operation
    context.http_request.['x-amz-api-version'] = context.config.api.version
    _apply_endpoint_discovery_user_agent(context)
  elsif discovery_cfg = context.operation.endpoint_discovery
    endpoint = _discover_endpoint(
      context,
      str_2_bool(discovery_cfg["required"])
    )
    context.http_request.endpoint = _valid_uri(endpoint.address) if endpoint
    if endpoint || context.config.endpoint_discovery
      _apply_endpoint_discovery_user_agent(context)
    end
  end
  @handler.call(context)
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4