Restructured http.request