Directly quoted from the Constitution, via National Archives.
"The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it."
And more Specifically,
"The Trial of all Crimes, except in Cases of...