class Net::HTTP::Copy - Documentation for Ruby 3.4
Description: class Net::HTTP::Copy: www. webdav.
Keywords: ruby,class,Net::HTTP::Copy

# class Net::HTTP::Copy

Class for representing WebDAV method COPY:

    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:

- `Net::HTTP#copy`: sends `COPY` request, returns response object.

### Constants

METHOD
REQUEST_HAS_BODY
RESPONSE_HAS_BODY