take http.Client as an argument