Class: Aws::S3::Plugins::StreamingRetry::Handler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-s3/plugins/streaming_retry.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.

Instance Method Summary collapse

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.



64
65
66
67
68
69
70
71
72
# File 'lib/aws-sdk-s3/plugins/streaming_retry.rb', line 64

def call(context)
  target = context.params[:response_target] || context[:response_target]

  # retry is only supported when range is NOT set on the initial request
  if supported_target?(target) && !context.params[:range]
    add_event_listeners(context, target)
  end
  @handler.call(context)
end