def buildProtocol(self, addr):
        """
        Generate a channel attached to this site.
        """
        channel = http.HTTPFactory.buildProtocol(self, addr)
        channel.requestFactory = self.requestFactory
        channel.site = self
        return channel

        Generate a channel attached to this site.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/server.py