Feat/refactor xhr to http