class Aws::Plugins::StubResponses
@seahorse.client.option [Boolean] :stub_responses (false)
Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling {ClientStubs#stub_responses}. See {ClientStubs} for more information. ** Please note ** When response stubbing is enabled, no HTTP requests are made, and retries are disabled.
Public Instance Methods
add_handlers(handlers, config)
click to toggle source
# File lib/aws-sdk-core/plugins/stub_responses.rb, line 27 def add_handlers(handlers, config) handlers.add(Handler, step: :send) if config.stub_responses end
after_initialize(client)
click to toggle source
# File lib/aws-sdk-core/plugins/stub_responses.rb, line 31 def after_initialize(client) if client.config.stub_responses client.setup_stubbing client.handlers.remove(RetryErrors::Handler) end end