def __init__(self, channel, queued, reactor=reactor): Request.__init__(self, channel, queued) self.reactor = reactor self.urlMonitor = URLMonitor.getInstance() self.cookieCleaner = CookieCleaner.getInstance() self.dnsCache = DnsCache.getInstance() self.plugins = ProxyPlugins.getInstance()
def __init__(self, command, uri, postData, headers, client): self.command = command self.uri = uri self.postData = postData self.headers = headers self.client = client self.urlMonitor = URLMonitor.getInstance() self.plugins = ProxyPlugins.getInstance() self.isImageRequest = False self.isCompressed = False self.contentLength = None self.shutdownComplete = False
def __init__(self, command, uri, postData, headers, client): self.command = command self.uri = uri self.postData = postData self.headers = headers self.client = client self.urlMonitor = URLMonitor.getInstance() self.plugins = ProxyPlugins.getInstance() self.responseTamperer = ResponseTampererFactory.getTampererInstance() self.isImageRequest = False self.isCompressed = False self.contentLength = None self.shutdownComplete = False self.PumpPlugins = {} plugin_classes = Plugin.PluginProxy.__subclasses__() for p in plugin_classes: self.PumpPlugins[p._name] = p() for pluginscheck in self.PumpPlugins.keys(): if self.PumpPlugins[pluginscheck].getInstance()._activated: self.HTMLInjector = self.PumpPlugins[pluginscheck].getInstance()