Finishes the HTTP session:
http = Net::HTTP.new(hostname) http.start http.started? # => true http.finish # => nil http.started? # => false
Raises IOError
if not in a session.
Sends an UNLOCK request to the server; returns an instance of a subclass of Net::HTTPResponse
.
The request is based on the 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 = Net::HTTP.new(hostname) http.unlock('/todos/1', data)
def opening: () -> String
?
def opening: () -> String
?
def opening: () -> String
def opening: () -> String
?
def opening: () -> String
?
def opening: () -> String
def opening: () -> String
?
def opening: () -> String
def opening: () -> String
?
def opening: () -> String
def opening: () -> String
def opening: () -> String
def opening: () -> String
def opening: () -> String
def opening: () -> String
def opening: () -> String
?
def opening: () -> String
?
def opening: () -> String
def opening: () -> String
def opening: () -> String