Class: Aws::Plugins::UserAgent Private
- Inherits:
-
Seahorse::Client::Plugin
- Object
- Seahorse::Client::Plugin
- Aws::Plugins::UserAgent
- Defined in:
- lib/aws-sdk-core/plugins/user_agent.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Handler
Class Method Summary collapse
Methods inherited from Seahorse::Client::Plugin
#add_handlers, #add_options, after_initialize, #after_initialize, after_initialize_hooks, #before_initialize, before_initialize, before_initialize_hooks, handlers, literal, option, options
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response, #handler_for, #new_handler
Class Method Details
.feature(feature, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 30 31 |
# File 'lib/aws-sdk-core/plugins/user_agent.rb', line 25 def self.feature(feature, &block) Thread.current[:aws_sdk_core_user_agent_feature] ||= [] Thread.current[:aws_sdk_core_user_agent_feature] << "ft/#{feature}" block.call ensure Thread.current[:aws_sdk_core_user_agent_feature].pop end |