def METHOD_NAME(self, request, from_ip):
    prefix, method, args = self.rqex.extract(request)
    for endpoint in self.endpoints:
        if endpoint.prefix == prefix:
            return endpoint.call_method(method, args, from_ip)
    else:
        raise MethodNotFound(method)