Method: Net::HTTP#lock

Defined in:
lib/net/http.rb

#lock(path, body, initheader = nil) ⇒ Object

Sends a LOCK request to the path and gets a response, as an HTTPResponse object.



1315
1316
1317
# File 'lib/net/http.rb', line 1315

def lock(path, body, initheader = nil)
  request(Lock.new(path, initheader), body)
end