class Wiris::HttpProxy
Attributes
auth[RW]
host[RW]
port[RW]
Public Class Methods
new(host, port)
click to toggle source
# File lib/src-generic/system/HttpProxy.rb, line 7 def initialize(host, port) @port = port @host = host @auth = nil end
newHttpProxy(host, port, user, pass)
click to toggle source
# File lib/src-generic/system/HttpProxy.rb, line 13 def self.newHttpProxy(host, port, user, pass) proxy = HttpProxy.new(host, port) hpa = HttpProxyAuth.new() hpa.user = user hpa.pass = pass proxy.auth = hpa return proxy end