@ Override public HttpPostStandardRequestDecoder offer ( HttpContent content ) { checkDestroyed ( ) ; // Maybe we should better not copy here for performance reasons but this will need // more care by the caller to release the content in a correct manner later // So maybe something to optimize on a later stage ByteBuf buf = content . content ( ) ; if ( undecodedChunk == null ) { undecodedChunk = buf . copy ( ) ; } else { undecodedChunk . writeBytes ( buf ) ; } if ( content instanceof LastHttpContent ) { isLastChunk = true ; } parseBody ( ) ; if ( undecodedChunk != null && undecodedChunk . writerIndex ( ) > discardThreshold ) { undecodedChunk . discardReadBytes ( ) ; } return this ; }
Initialized the internals from a new chunk