refactor cliente http