Method: Gem::Net::HTTP#unlock
- Defined in:
- lib/rubygems/vendor/net-http/lib/net/http.rb
#unlock(path, body, initheader = nil) ⇒ Object
Sends an UNLOCK request to the server; returns an instance of a subclass of Gem::Net::HTTPResponse.
The request is based on the Gem::Net::HTTP::Unlock object created from string path
, string body
, and initial headers hash initheader
.
data = '{"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}'
http = Gem::Net::HTTP.new(hostname)
http.unlock('/todos/1', data)
2135 2136 2137 |
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 2135 def unlock(path, body, initheader = nil) request(Unlock.new(path, initheader), body) end |