# File lib/couchrest/rest_api.rb, line 64 def copy(uri, destination, options = {}) opts = options.nil? ? {} : options.dup # also copy headers! opts[:headers] = options[:headers].nil? ? {} : options[:headers].dup opts[:headers]['Destination'] = destination execute(uri, :copy, opts) end