def __init__(
        self,
        local_host,
        remote_host,
        scheme='http',
        server_protocol='HTTP/1.1',
    ):
        """Populate a new Request object.

        local_host should be an httputil.Host object with the server
        info. remote_host should be an httputil.Host object with the
        client info. scheme should be a string, either "http" or
        "https".
        """
        self.local = local_host
        self.remote = remote_host
        self.scheme = scheme
        self.server_protocol = server_protocol

        self.closed = False

        # Put a *copy* of the class error_page into self.
        self.error_page = self.error_page.copy()

        # Put a *copy* of the class namespaces into self.
        self.namespaces = self.namespaces.copy()

        self.stage = None

        self.unique_id = LazyUUID4()
Populate a new Request object.

        local_host should be an httputil.Host object with the server
        info. remote_host should be an httputil.Host object with the
        client info. scheme should be a string, either "http" or
        "https".
        
cherrypy/_cprequest.py