refactor de cliente http