/** * @param body The body to replace * @return The current instance */ public NettyMutableHttpResponse replace(ByteBuf body) { this.nettyResponse = this.nettyResponse.replace(body); this.headers.setNettyHeaders(this.nettyResponse.headers()); return this; }