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
Related:
-
Net::HTTP#mkcol
: sendsMKCOL
request, returns response object.
Constants
- METHOD
- REQUEST_HAS_BODY
- RESPONSE_HAS_BODY