(self, channel, queued, reactor=reactor)
Method overridden to change some part of proxy.Request and of the base http.Request
Method overridden to change some part of proxy.Request and of the base http.Request
Method overridden to change some part of proxy . Request and of the base http . Request
def __init__(self, channel, queued, reactor=reactor):
        """
        Method overridden to change some part of proxy.Request and of the base http.Request
        """
        self.reactor = reactor
        self.notifications = []
        self.channel = channel
        self.queued = queued
        self.requestHeaders = Headers()
        self.received_cookies = {}
        self.responseHeaders = Headers()
        self.cookies = []  # outgoing cookies
        self.bodyProducer = BodyProducer()
        self.proxy_d = None
        self.proxy_response = None

        self.stream = b''

        self.header_injected = False
        # If we should disable the banner,
        # say that we have already injected it.
        if config.disable_banner:
            self.header_injected = True

        self.transport = StringTransport() if queued else self.channel.transport

        self.obj = Tor2webObj()
        self.var = Storage()
        self.var['version'] = __version__
        self.var['basehost'] = config.basehost
        self.var['errorcode'] = None

        self.decoderGzip = None
        self.encoderGzip = None

        self.pool = pool
def __init__ ( self , channel , queued , reactor = reactor ) : self . reactor = reactor self . notifications = [ ] self . channel = channel self . queued = queued self . requestHeaders = Headers ( ) self . received_cookies = { } self . responseHeaders = Headers ( ) self . cookies = [ ] # outgoing cookies self . bodyProducer = BodyProducer ( ) self . proxy_d = None self . proxy_response = None self . stream = b'' self . header_injected = False # If we should disable the banner, # say that we have already injected it. if config . disable_banner : self . header_injected = True self . transport = StringTransport ( ) if queued else self . channel . transport self . obj = Tor2webObj ( ) self . var = Storage ( ) self . var [ 'version' ] = __version__ self . var [ 'basehost' ] = config . basehost self . var [ 'errorcode' ] = None self . decoderGzip = None self . encoderGzip = None self . pool = pool