Class: Aws::Plugins::UserAgent::Handler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::Plugins::UserAgent::Handler
- 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: UserAgent
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Handler
Instance Method Summary collapse
- #call(context) ⇒ Object private
- #set_user_agent(context) ⇒ Object private
Methods inherited from Seahorse::Client::Handler
Constructor Details
This class inherits a constructor from Seahorse::Client::Handler
Instance Method Details
#call(context) ⇒ 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.
76 77 78 79 |
# File 'lib/aws-sdk-core/plugins/user_agent.rb', line 76 def call(context) set_user_agent(context) @handler.call(context) end |
#set_user_agent(context) ⇒ 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.
81 82 83 |
# File 'lib/aws-sdk-core/plugins/user_agent.rb', line 81 def set_user_agent(context) context.http_request.headers['User-Agent'] = UserAgent.new(context).to_s end |