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.responseTamperer = ResponseTampererFactory.getTampererInstance() 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.responseTamperer = ResponseTampererFactory.getTampererInstance() self.isImageRequest = False self.isCompressed = False self.contentLength = None self.shutdownComplete = False self.plugins = {} plugin_classes = Plugin.PluginProxy.__subclasses__() for p in plugin_classes: self.plugins[p._name] = p() for pluginscheck in self.plugins.keys(): if self.plugins[pluginscheck].getInstance()._activated: self.HTMLInjector = self.plugins[pluginscheck].getInstance()