Skip to content
instance method

Net::HTTPSession#finish

finish

Finishes the HTTP session:

Example
http = Net::HTTP.new(hostname)
http.start
http.started? # => true
http.finish   # => nil
http.started? # => false

Raises IOError if not in a session.

See also #delete #get #copy #head also in 4.1 · 3.4