Class for representing WebDAV method 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
See Request Headers.
Related:
-
Net::HTTP#unlock
: sendsUNLOCK
request, returns response object.
Constants
METHOD | = | 'UNLOCK' |
REQUEST_HAS_BODY | = | true |
RESPONSE_HAS_BODY | = | true |