Refactors Http