class Seahorse::Client::Plugins::ContentLength::Handler

def call(context)

def call(context)
  body = context.http_request.body
  method = context.http_request.http_method
  # We use Net::HTTP with body_stream which doesn't do this by default
  if body.respond_to?(:size) && !METHODS_WITHOUT_BODY.include?(method)
    context.http_request.headers['Content-Length'] = body.size
  end
  @handler.call(context)
end