if (req.bodyPipedStream == null) { // the first into body decode status, it neet create piped stream
if(contentLength >= config.getHttpBodyThreshold()) {
log.info("content length [{}] more than threshold [{}]", contentLength , config.getHttpBodyThreshold());
req.bodyPipedStream = new FilePipedStream(config.getTempdir());
} else {
req.bodyPipedStream = new ByteArrayPipedStream(contentLength);
}
}
req.offset += buf.remaining();
byte[] data = new byte[buf.remaining()];