class Gem::Net::HTTP::Lock
Class for representing WebDAV method LOCK:
require 'rubygems/vendor/net-http/lib/net/http' uri = Gem::URI('http://example.com') hostname = uri.hostname # => "example.com" req = Gem::Net::HTTP::Lock.new(uri) # => #<Gem::Net::HTTP::Lock LOCK> res = Gem::Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Related:
-
Gem::Net::HTTP#lock
: sendsLOCK
request, returns response object.
Constants
- METHOD
- REQUEST_HAS_BODY
- RESPONSE_HAS_BODY