if (len == ContentLengthStrategy.CHUNKED) {
this.contentEncoder = new ChunkEncoder(this.outbuf);
} else if (len == ContentLengthStrategy.IDENTITY) {
this.contentEncoder = new IdentityEncoder(this.session.channel());
} else {
this.contentEncoder = new LengthDelimitedEncoder(this.session.channel(), len);
}
}