method

start

v1_8_7_72 - Show latest stable - Class: Net::HTTP
start(# :yield: http)
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.