Pass default values to httpClient and preference with constractor arguments