def _base_environ(self, **request):
        '''
            Override the default values for the wsgi environment variables.
        '''
        # This is a minimal valid WSGI environ dictionary, plus:
        # - HTTP_COOKIE: for cookie support,
        # - REMOTE_ADDR: often useful, see #8551.
        # See http://www.python.org/dev/peps/pep-3333/#environ-variables

        environ = {
            'HTTP_COOKIE': self.cookies.output(header='', sep='; '),
            'PATH_INFO': str('/'),
            'REMOTE_ADDR': str('127.0.0.1'),
            'REQUEST_METHOD': str('GET'),
            'SCRIPT_NAME': str(''),
            'SERVER_NAME': str('localhost'),
            'SERVER_PORT': str('8000'),
            'SERVER_PROTOCOL': str('HTTP/1.1'),
            'wsgi.version': (1, 0),
            'wsgi.url_scheme': str('http'),
            'wsgi.input': FakePayload(b''),
            'wsgi.errors': self.errors,
            'wsgi.multiprocess': True,
            'wsgi.multithread': True,
            'wsgi.run_once': False,
        }
        environ.update(self.defaults)
        environ.update(request)
        return environ
def _base_environ ( self , ** request ) : environ = { 'HTTP_COOKIE' : self . cookies . output ( header = '' , sep = '; ' ) , 'PATH_INFO' : str ( '/' ) , 'REMOTE_ADDR' : str ( '127.0.0.1' ) , 'REQUEST_METHOD' : str ( 'GET' ) , 'SCRIPT_NAME' : str ( '' ) , 'SERVER_NAME' : str ( 'localhost' ) , 'SERVER_PORT' : str ( '8000' ) , 'SERVER_PROTOCOL' : str ( 'HTTP/1.1' ) , 'wsgi.version' : ( 1 , 0 ) , 'wsgi.url_scheme' : str ( 'http' ) , 'wsgi.input' : FakePayload ( b'' ) , 'wsgi.errors' : self . errors , 'wsgi.multiprocess' : True , 'wsgi.multithread' : True , 'wsgi.run_once' : False , } environ . update ( self . defaults ) environ . update ( request ) return environ
Override the default values for the wsgi environment variables.