method

new

ruby latest stable - Class: Net::HTTP
new(address, port = nil)
public

Creates a new Net::HTTP object for the specified server address, without opening the TCP connection or initializing the HTTP session. The address should be a DNS hostname or IP address.