How to configure Rest Assured to Wait until complete response data is returned
<p>Would you please advise how to configure RestAssured to wait until complete response data is returned.</p>

<p>I am trying to validate a data feed using http get as shown below.</p>

<pre><code>given()
        .relaxedHTTPSValidation()
        .header("Content-Type", "application/json")
.when()

        .get("/API/data/")

.then()

        .statusCode(200)
        .log().all();
</code></pre>

<p>In this context, Rest Assured logging only few lines of data, does not seem to wait until complete response data is returned . 
This works ok when data response is small.</p>

<p>In this case, it seems to log only data that's available when http status code is returned.</p>

<p>Consequently I am seeing the following error message: Premature end of Content-Length delimited message body (expected: 1486; received: 1088)</p>

<p>Thx </p>