Skip to content
instance method

Net::HTTP#finish

() -> void
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 · 3.3 · 3.2 · 3.1 · 3.0