method

start

v1_9_2_180 - Show latest stable - Class: Net::HTTP
start()
public

Opens TCP connection and HTTP session.

When this method is called with block, gives a HTTP object to the block and closes the TCP connection / HTTP session after the block executed.

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