Add http request into typescript