add types in http.ts