new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
public
Creates a new Net::HTTP object. If proxy_addr is
given, creates an Net::HTTP object with proxy
support. This method does not open the TCP connection.
Show source
def HTTP.new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
h = Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
h.instance_eval {
@newimpl = ::Net::HTTP.version_1_2?
}
h
end