class Aws::Plugins::ChecksumAlgorithm::OptionHandler

@api private

def call(context)

def call(context)
  context[:http_checksum] ||= {}
  # validate request configuration
  if (request_input = ChecksumAlgorithm.request_algorithm_selection(context))
    unless CLIENT_ALGORITHMS.include? request_input
      if (request_input == 'CRC32C')
        raise ArgumentError, "CRC32C requires crt support - install the aws-crt gem for support."
      else
        raise ArgumentError, "#{request_input} is not a supported checksum algorithm."
      end
    end
  end
# validate response configuration
  if (ChecksumAlgorithm.request_validation_mode(context))
    # Compute an ordered list as the union between priority supported and the
    # operation's modeled response algorithms.
    validation_list = CHECKSUM_ALGORITHM_PRIORITIES &
      ChecksumAlgorithm.operation_response_algorithms(context)
    context[:http_checksum][:validation_list] = validation_list
  end
  @handler.call(context)
end