def send_zip(self, fname, data):
        self.set_status(200, 'HTTP_OK')
        self.set_header('Content-Type', 'application/zip')
        self.set_header(
            'Content-Disposition', 'attachment; filename={}'.format(fname))
        self.write(data)
        self.finish()
Sends zip data to client.
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/element_manager/api.py/GenericAPIHandler.send_zip