Add http client and remove setConfiguration pattern