class Gem::Net::HTTP::Lock

Class for representing WebDAV method LOCK:

require 'rubygems/net-http/lib/net/http'
uri = 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:

Constants

METHOD
REQUEST_HAS_BODY
RESPONSE_HAS_BODY