New York Laws
Article 70 - Habeas Corpus
7009 - Hearing.

(b) Reply to return. The petitioner or the person detained may deny
under oath, orally or in writing, any material allegation of the
answering affidavits or allege any fact showing that the person detained
is entitled to be discharged.
(c) Hearing to be summary. The court shall proceed in a summary manner
to hear the evidence produced in support of and against the detention
and to dispose of the proceeding as justice requires.
(d) Sickness or infirmity of person detained. Where it is proved to
the satisfaction of the court that the person detained is too sick or
infirm to be brought to the appointed place, the hearing may be held
without his presence, may be adjourned, or may be held at the place
where the prisoner is detained.
(e) Custody during proceeding. Pending final disposition, the court
may place the person detained in custody or parole him or admit him to
bail as justice requires.