The officer or persons executing the governor's warrant or arrest, or the agent of the demanding state to whom the prisoner may have been delivered, may, when necessary, confine the prisoner in the jail of any county or city through which he or she may pass; and the keeper of the jail must receive and safely keep the prisoner until the officer or person having charge of the person is ready to proceed on his or her route, the officer or person being chargeable with the expense of keeping.
R.I. Gen. Laws § 12-9-14