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.612 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.611 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.610 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.609 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.608 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.607 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.606 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.605 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.604 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.603 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.602 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.601 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.600 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.599 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.598 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.597 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.596 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.595 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.594 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.593 lib/seahorse/client/plugins/content_length.rb