If granted, the court order would be the first step in a process to have Assange extradited from Britain, where he is serving a 50 week sentence for skipping bail.
Sweden reopened the rape investigation last week. It was begun in 2010 but dropped in 2017 after Assange took refuge in the Ecuadorean embassy in London.
Assange denies the accusation.
Deputy Chief Prosecutor Eva-Marie Persson said she had requested that the District Court to detain Assange in his absence, on probable cause suspected for rape.
She said she would issue a European arrest warrant for Assange to be surrendered to Sweden if the court decided to detain him.
Sweden’s decision to reopen the rape investigation casts doubt on where Assange may eventually end up, with US authorities already seeking his extradition over conspiracy charges relating to one of the biggest ever leaks of classified information.
A lawyer representing Assange in Sweden said he would tell the District Court it could not investigate the prosecutor’s request until he had conferred with his client and learned whether or not he wished to oppose a detention order.
“Since he is in prison in England, it has so far not been possible even to speak to him by telephone”, Per Samuelson told Reuters.
The British courts will have to rule on the Swedish and U.S. extradition requests, with interior minister Sajid Javid having the final say on which one takes precedence. While US sentencing might be tougher, the rape charge against Assange is more serious than the conspiracy to hack charge being looked at in the US.
“The outcome of this process is impossible to predict”, Persson said. Citing information from UK authorities, she said Assange would serve 25 weeks of his UK sentence before he could be released.
A British judge has given the US government a deadline of June 12 to outline its case against Assange.