The court or judge to whom the petition in mandamus or prohibition is presented shall, if the petition makes a prima facie case, issue a rule against the defendant to show cause why the writ prayed for should not be awarded. A copy of the petition shall accompany service of the rule. Such rule shall be returnable at a time to be fixed by the court or judge.