class TencentCloud::Common::ApiRequset
def initialize(scheme, host, port = nil, timeout = 60, proxy = nil)
def initialize(scheme, host, port = nil, timeout = 60, proxy = nil) port = 443 if scheme == 'https' if proxy.nil? @conn = Net::HTTP.new(host, port) else p = URI(proxy) @conn = Net::HTTP.new(host, port, p.host, p.port, p.user, p.pass) end @conn.use_ssl = scheme == 'https' @conn.read_timeout = timeout end