class Net::HTTP::Mkcol - Documentation for Ruby 4.0
Description: class Net::HTTP::Mkcol: www. webdav.
Keywords: ruby,class,Net::HTTP::Mkcol

🔍

No recent searches

# class Net::HTTP::Mkcol

Class for representing WebDAV method MKCOL:

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

See Request Headers.

Related:

- `Net::HTTP#mkcol`: sends `MKCOL` request, returns response object.