public HttpRequest chunk(final int size){
  connection.setChunkedStreamingMode(size);
  return this;
}

public HttpRequest chunk ( final int size ) { connection . setChunkedStreamingMode ( size ) ; return this ; }
set chunked streaming mode to the given size
