Method: Aws::Plugins::StubResponses#after_initialize
- Defined in:
- lib/aws-sdk-core/plugins/stub_responses.rb
#after_initialize(client) ⇒ 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.
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/aws-sdk-core/plugins/stub_responses.rb', line 50 def after_initialize(client) if client.config.stub_responses client.setup_stubbing client.handlers.remove(RetryErrors::Handler) client.handlers.remove(RetryErrors::LegacyHandler) client.handlers.remove(ClientMetricsPlugin::Handler) client.handlers.remove(ClientMetricsSendPlugin::LatencyHandler) client.handlers.remove(ClientMetricsSendPlugin::AttemptHandler) client.handlers.remove(Seahorse::Client::Plugins::RequestCallback::OptionHandler) client.handlers.remove(Seahorse::Client::Plugins::RequestCallback::ReadCallbackHandler) end end |