def add_handler(self, handler):
        assert issubclass(handler, APIHandlerBase)
        assert handler not in self._handlers
        self._handlers.append(handler)
dataset/ETHPy150Open smartanthill/smartanthill1_0/smartanthill/api/service.py/APIService.add_handler/original