generator.setMaxPendingBytes(10000);
RequestBuilder builder = new RequestBuilder("POST");
builder.setUrl(scheme + "://localhost:" + port + "/test");
builder.setBody(generator);
client.executeRequest(builder.build(), new AsyncCompletionHandler<org.asynchttpclient.Response>() {
@Override
public org.asynchttpclient.Response onCompleted(org.asynchttpclient.Response response) throws Exception {
try {
totalsReceived[idx] = Integer.parseInt(response.getHeader("x-total"));
} catch (Exception e) {