§ 5/10-102 Who may file

§ 10-102. Who may file.

    Every person imprisoned or otherwise restrained of his or her liberty, except as herein otherwise provided, may apply for habeas corpus in the manner provided in Article X of this Act, to obtain relief from such imprisonment or restraint, if it proved to be unlawful.