use of com.webpieces.http2parser.api.dto.DataFrame in project webpieces by deanhiller.
the class ChunkedStream method writeDataOut.
private void writeDataOut() {
byte[] data = str.toByteArray();
str = new ByteArrayOutputStream();
DataWrapper body = wrapperFactory.wrapByteArray(data);
log.info("caching " + type + " data=" + body.getReadableSize());
DataFrame frame = new DataFrame();
frame.setEndOfStream(false);
frame.setData(body);
cache.add(frame);
}
Aggregations