http.createClient is deprecated. Use `http.request` instead