def start_resourcefile(self):

        from synapse.resourcefile import ResourceFile
        try:
            self.resourcefile = ResourceFile(self.transport)
            self.resourcefile.fetch()
        except KeyboardInterrupt:
            self.stop_synapse()
This method handles the --uri file and --uri http commands.
dataset/ETHPy150Open comodit/synapse-agent/synapse/dispatcher.py/Dispatcher.start_resourcefile