类 Net::HTTP::Unlock

用于表示 WebDAV 方法 UNLOCK 的类

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

参见 请求头.

相关

常量

METHOD
REQUEST_HAS_BODY
RESPONSE_HAS_BODY