The request is the first step towards seeking the Australian whistleblower's extradition to Sweden.
Swedish prosecutors on Monday issued a formal request to hold WikiLeaks founder Julian Assange, currently imprisoned in Britain, on suspicion of rape - a first step towards seeking his extradition to Sweden.
Swedish deputy director of public prosecutions Eva-Marie Persson said in a statement she had filed a request with the Uppsala district court to have Mr Assange detained in his absence over an alleged rape.
Detaining someone in their absence is a standard part of Swedish legal procedure if a suspect is outside the country or cannot be located.
The request follows last week's reopening of a 2010 rape investigation, and Ms Persson added that once the court had granted the request, she would then ask British authorities to transfer Mr Assange to Sweden.
"If the court decides to detain him, I will issue a European Arrest Warrant concerning surrender to Sweden," Ms Persson said.
The Australian whistleblower, who holed himself up in the Ecuadoran embassy in London for seven years to avoid a British extradition order to Sweden, was arrested by British police on April 11 after Ecuador gave him up.
A London court sentenced him on May 1 to 50 weeks in jail for breaching the British order.
The Swedish investigation concerns events which took place in 2010 when a Swedish woman accused Mr Assange of rape, after meeting him at a WikiLeaks conference in Stockholm.
Mr Assange has always denied the allegations.
Swedish authorities closed the investigation in 2017, when Sweden's then director of public prosecutions Marianne Ny argued that since Mr Assange could not be reached, having taken up residence in Ecuador's embassy, it was not possible to proceed with the probe.
But the investigation was reopened on May 13 following Mr Assange's arrest in London.
The prosecution authority was unable to say when the detention hearing would take place since this would be up to the court to decide, and that a European Arrest Warrant would only be issued after the court had granted the detention request.
When contacted by AFP, the Uppsala district court, where the request was filed, said the detention hearing had not yet been scheduled.
Mr Assange's Swedish lawyer Per E Samuelson said that he didn't think the detention hearing could take place this week, since he would need to go over the matter with his client first.
"I've written the district court and said that they can't hold a detention hearing until I've met my client and received instructions. Since he is currently incarcerated in London I haven't even been able to establish contact over the phone yet," Mr Samuelson told AFP on Monday.
Mr Assange is already the subject of an extradition request from the United States, where he is wanted for hacking. That request was only revealed following his arrest in London.
Ms Persson said it would be up to British authorities to decide which country's request should take precedence.
"In the event of a conflict between a European Arrest Warrant and a request for extradition from the US, UK authorities will decide on the order of priority. The outcome of this process is impossible to predict," she said.