Changed HttpClient interface to remove copying of response.