No person arrested upon such warrant shall be delivered over to the agent whom the executive authority demanding the person has appointed to receive the person unless the person is first taken forthwith before a judge of a court of record or a justice of the peace in this State, who shall inform the person of the demand made for the person's surrender and of the crime with which the person is charged, and that the person has the right to demand and procure legal counsel. If the prisoner or the prisoner's counsel states that the person or they desire to test the legality of the prisoner's arrest, the judge or justice of the peace shall fix a reasonable time to be allowed within which to apply for a writ of habeas corpus. When such writ is applied for, notice thereof, and of the time and place of hearing thereon, shall be given to the Deputy Attorney General of the county in which the arrest is made and in which the accused is in custody, or to the Attorney General or the Chief Deputy Attorney General, and to the agent of the demanding state.
11 Del. C. § 2510