Class for representing WebDAV method MOVE:
require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
req = Net::HTTP::Move.new(uri) # => #<Net::HTTP::Move MOVE>
res = Net::HTTP.start(hostname) do |http|
http.request(req)
end
See Request Headers.
Related:
Net::HTTP#move: sends MOVE request, returns response object.
Ruby Core © 1993–2025 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.