Class: Net::HTTP::Unlock

Inherits:
Net::HTTPRequest show all
Defined in:
lib/net/http/requests.rb

Overview

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: sends UNLOCK request, returns response object.

Constant Summary collapse

METHOD =
'UNLOCK'
REQUEST_HAS_BODY =
true
RESPONSE_HAS_BODY =
true

Method Summary

Methods inherited from Net::HTTPRequest

#initialize

Constructor Details

This class inherits a constructor from Net::HTTPRequest