def remote_request(self, request):
        """
        Look up the resource for the given request and render it.
        """
        res = self.site.getResourceFor(request)
        self._log.info(request)
        result = res.render(request)
        if result is not server.NOT_DONE_YET:
            request.write(result)
            request.finish()
        return server.NOT_DONE_YET

        Look up the resource for the given request and render it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/distrib.py