HttpResponseEntity: the API is changed to allow for specifying a custom way to read the response body.