method

new

v1_9_3_125 - Show latest stable - Class: Net::HTTP
new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
public

Creates a new Net::HTTP object without opening a TCP connection or HTTP session. The address should be a DNS hostname or IP address. If p_addr is given, creates a Net::HTTP object with proxy support.