def __init__(self, channel, queued, reactor = reactor): Request.__init__(self, channel, queued) logging.debug('Client request initiated...') self.reactor = reactor self.url_monitor = URLMonitor.get_instance() self.cookie_cleaner = CookieCleaner.get_instance() self.dns_cache = DNSCache.get_instance()
def __init__(self, command, uri, postData, headers, client): self.command = command self.uri = uri self.postData = postData self.headers = headers self.client = client self.url_monitor = URLMonitor.get_instance() self.isImageRequest = False self.isCompressed = False self.contentLength = None self.shutdownComplete = False