Sha256: 6b7ff25c230f95f41cc78c5a34d02a87b15b35b1c0f6452fedf6ecd02c221b1e

Contents?: true

Size: 442 Bytes

Versions: 1156

Compression:

Stored size: 442 Bytes

Contents

module Seahorse
  module Client
    module Plugins
      class ContentLength < Plugin

        # @api private
        class Handler < Client::Handler

          def call(context)
            length = context.http_request.body.size
            context.http_request.headers['Content-Length'] = length
            @handler.call(context)
          end

        end

        handler(Handler, step: :sign, priority: 0)

      end
    end
  end
end

Version data entries

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

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