Yes, it is, although you will have to process the Response object yourself. Here is an example of how I did this in the past:
HttpResponse response = Request.Get(url) .connectTimeout(CONNECTION_TIMEOUT_MILLIS) .socketTimeout(SOCKET_TIMEOUT_MILLIS) .execute() .returnResponse(); int status = response.getStatusLine().getStatusCode(); byte[] serializedObject = EntityUtils.toByteArray(response.getEntity());
There are several ways to get body content using EntityUtils. In this case, I retrieved the serialized object from the cache, but you understood this idea. I really don't think this is a departure from the Fluent API, but I think it is a matter of opinion. The problem is that, using the Fluent returnXXX methods, the answer is completely absorbed and closed, so you need to get the things you need from the answer itself.
source share