Returns all registered handlers attached to this API

def handlers(self):
        """Returns all registered handlers attached to this API"""
        if getattr(self, '_http'):
            yield from self.http.handlers()
        if getattr(self, '_cli'):
            yield from self.cli.handlers()