2007 ORS § 133.787¹
Rights of arrested person

No person arrested upon such warrant shall be delivered over to the agent whom the executive authority demanding the person shall have appointed to receive the person unless the person has been informed of the demand made for surrender and of the crime with which the person is charged, and that the person has the right to demand legal counsel; and if the prisoner, the friends, or counsel of the prisoner shall state the desire to test the legality of the arrest, the prisoner shall be taken forthwith before a judge of a court of record in this state, who shall fix a reasonable time to be allowed the prisoner within which to apply for a writ of habeas corpus. And when such writ is applied for, notice thereof, and of the time and place of hearing thereon, shall be given to the public prosecuting officer of the county in which the arrest is made and in which the accused is in custody, and to the said agent of the demanding state. [Formerly 147.100]