Sha256: b8b035d57b0edbc17904ea8d357aeb296c2e231a97bb5e5888d6adeccd324f07

Contents?: true

Size: 626 Bytes

Versions: 1050

Compression:

Stored size: 626 Bytes

Contents

module Aws
  module Plugins
    class S3Expect100Continue < Seahorse::Client::Plugin

      def add_handlers(handlers, config)
        if config.http_continue_timeout && config.http_continue_timeout > 0
          handlers.add(Handler)
        end
      end

      # @api private
      class Handler < Seahorse::Client::Handler

        def call(context)
          if
            context.http_request.body &&
            context.http_request.body.size > 0
          then
            context.http_request.headers['expect'] = '100-continue'
          end
          @handler.call(context)
        end

      end
    end
  end
end

Version data entries

1,050 entries across 1,050 versions & 2 rubygems

Version Path
aws-sdk-core-2.11.632 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.631 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.630 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.629 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.628 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.627 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.626 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.625 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.624 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.623 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.622 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.621 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.620 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.619 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.618 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.617 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.616 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.615 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.614 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb
aws-sdk-core-2.11.613 lib/aws-sdk-core/plugins/s3_expect_100_continue.rb