Added possiblity to configure HttpClient