added method to httpClient allowing options to be set more easily,