class Aws::Plugins::ApiKey::ApiKeyHandler

@api private

Public Instance Methods

call(context) click to toggle source
# File lib/aws-sdk-core/plugins/api_key.rb, line 41
def call(context)
  if context[:api_key]
    apply_api_key(context)
  end
  @handler.call(context)
end

Private Instance Methods

apply_api_key(context) click to toggle source
# File lib/aws-sdk-core/plugins/api_key.rb, line 50
def apply_api_key(context)
  context.http_request.headers['x-api-key'] = context[:api_key]
end