Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::HTTP#start

start() { |http| ... }

Opens a TCP connection and HTTP session.

When this method is called with a block, it passes the Net::HTTP object to the block, and closes the TCP connection and HTTP session after the block has been executed.

When called with a block, it returns the return value of the block; otherwise, it returns self.

See also .start #sspi_auth? #started? #sspi_auth also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0