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.
Show source
def HTTP.new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
end