support function pointer in match method of URLRouter