parameters: (self)
docstring: Create a Request object using environ.
docstring_summary: Create a Request object using environ.
docstring_tokens: Create a Request object using environ .
function: def run(self):
          """Create a Request object using environ."""
          env = self.environ.get
  
          local = httputil.Host(
              '',
              int(env('SERVER_PORT', 80) or -1),
              env('SERVER_NAME', ''),
          )
          remote = httputil.Host(
              env('REMOTE_ADDR', ''),
              int(env('REMOTE_PORT', -1) or -1),
              env('REMOTE_HOST', ''),
          )
          scheme = env('wsgi.url_scheme')
          sproto = env('ACTUAL_SERVER_PROTOCOL', 'HTTP/1.1')
          request, resp = self.cpapp.get_serving(local, remote, scheme, sproto)
  
          # LOGON_USER is served by IIS, and is the name of the
          # user after having been mapped to a local account.
          # Both IIS and Apache set REMOTE_USER, when possible.
          request.login = env('LOGON_USER') or env('REMOTE_USER') or None
          request.multithread = self.environ['wsgi.multithread']
          request.multiprocess = self.environ['wsgi.multiprocess']
          request.wsgi_environ = self.environ
          request.prev = env('cherrypy.previous_request', None)
  
          meth = self.environ['REQUEST_METHOD']
  
          path = httputil.urljoin(
              self.environ.get('SCRIPT_NAME', ''),
              self.environ.get('PATH_INFO', ''),
          )
          qs = self.environ.get('QUERY_STRING', '')
  
          path, qs = self.recode_path_qs(path, qs) or (path, qs)
  
          rproto = self.environ.get('SERVER_PROTOCOL')
          headers = self.translate_headers(self.environ)
          rfile = self.environ['wsgi.input']
          request.run(meth, path, qs, rproto, headers, rfile)
function_tokens: def run ( self ) : env = self . environ . get local = httputil . Host ( '' , int ( env ( 'SERVER_PORT' , 80 ) or - 1 ) , env ( 'SERVER_NAME' , '' ) , ) remote = httputil . Host ( env ( 'REMOTE_ADDR' , '' ) , int ( env ( 'REMOTE_PORT' , - 1 ) or - 1 ) , env ( 'REMOTE_HOST' , '' ) , ) scheme = env ( 'wsgi.url_scheme' ) sproto = env ( 'ACTUAL_SERVER_PROTOCOL' , 'HTTP/1.1' ) request , resp = self . cpapp . get_serving ( local , remote , scheme , sproto ) # LOGON_USER is served by IIS, and is the name of the # user after having been mapped to a local account. # Both IIS and Apache set REMOTE_USER, when possible. request . login = env ( 'LOGON_USER' ) or env ( 'REMOTE_USER' ) or None request . multithread = self . environ [ 'wsgi.multithread' ] request . multiprocess = self . environ [ 'wsgi.multiprocess' ] request . wsgi_environ = self . environ request . prev = env ( 'cherrypy.previous_request' , None ) meth = self . environ [ 'REQUEST_METHOD' ] path = httputil . urljoin ( self . environ . get ( 'SCRIPT_NAME' , '' ) , self . environ . get ( 'PATH_INFO' , '' ) , ) qs = self . environ . get ( 'QUERY_STRING' , '' ) path , qs = self . recode_path_qs ( path , qs ) or ( path , qs ) rproto = self . environ . get ( 'SERVER_PROTOCOL' ) headers = self . translate_headers ( self . environ ) rfile = self . environ [ 'wsgi.input' ] request . run ( meth , path , qs , rproto , headers , rfile )