Skip to content
class · Ruby 4.0

Net::HTTP::Copy

Class for representing WebDAV method COPY:

Example
require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
req = Net::HTTP::Copy.new(uri) # => #<Net::HTTP::Copy COPY>
res = Net::HTTP.start(hostname) do |http|
  http.request(req)
end

See Request Headers.

Related: