Any way to get String Response from performRequest call?

Right now are using below call and then converting response to String as below.

Response response = restClient.performRequest(new Request("GET", "/"));
String responseBody = EntityUtils.toString(response.getEntity());

Is there any way to get the response from performRequest directly as String?

In our case, we have huge time spent on this toString() which we want to avoid.
Any clues on this will be greatly appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.