类 Net::HTTP::Proppatch

用于表示 WebDAV 方法 PROPPATCH 的类

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

参见 请求头.

相关

常量

METHOD
REQUEST_HAS_BODY
RESPONSE_HAS_BODY