Ecuador's president Rafael Correa has agreed to give Julian Assange asylum, officials within Ecuador's government have said.

The WikiLeaks founder has been holed up at Ecuador's London embassy since 19 June, when he officially requested political asylum.

"Ecuador will grant asylum to Julian Assange," said an official in the Ecuadorean capital Quito, who is familiar with the government discussions.

On Monday, Correa told state-run ECTV that he would decide this week whether to grant asylum to Assange. Correa said a large amount of material about international law had to be examined to make a responsible informed decision.