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.572 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.571 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.570 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.569 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.568 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.567 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.566 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.565 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.564 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.563 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.562 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.561 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.560 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.559 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.558 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.557 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.556 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.555 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.554 lib/seahorse/client/plugins/content_length.rb
aws-sdk-core-2.11.553 lib/seahorse/client/plugins/content_length.rb