Class: Net::HTTP::Lock
- Inherits:
-
Net::HTTPRequest
- Object
- Net::HTTPGenericRequest
- Net::HTTPRequest
- Net::HTTP::Lock
- Defined in:
- lib/net/http/requests.rb
Overview
Class for representing WebDAV method LOCK:
require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
req = Net::HTTP::Lock.new(uri) # => #<Net::HTTP::Lock LOCK>
res = Net::HTTP.start(hostname) do |http|
http.request(req)
end
See Request Headers.
Related:
- Net::HTTP#lock: sends
LOCKrequest, returns response object.
Constant Summary collapse
- METHOD =
'LOCK'- REQUEST_HAS_BODY =
true- RESPONSE_HAS_BODY =
true
Method Summary
Methods inherited from Net::HTTPRequest
Constructor Details
This class inherits a constructor from Net::HTTPRequest