Method: Net::HTTP#lock

Defined in:
lib/extensions/net-http/net/http.rb

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

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



1027
1028
1029
# File 'lib/extensions/net-http/net/http.rb', line 1027

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