class Gem::Net::HTTP::Mkcol
Class for representing WebDAV method MKCOL:
require 'rubygems/vendor/net-http/lib/net/http' uri = Gem::URI('http://example.com') hostname = uri.hostname # => "example.com" req = Gem::Net::HTTP::Mkcol.new(uri) # => #<Gem::Net::HTTP::Mkcol MKCOL> res = Gem::Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Related:
-
Gem::Net::HTTP#mkcol
: sendsMKCOL
request, returns response object.
Constants
- METHOD
- REQUEST_HAS_BODY
- RESPONSE_HAS_BODY