Closed toohandsome closed 1 year ago
把新的response写出去就可以了:
clientChannel.writeAndFlush(fullHttpResponse);
return;
把新的response写出去就可以了:
clientChannel.writeAndFlush(fullHttpResponse); return;
我解决了,先 调用一下 httpResponse.content().clear(); 就好了, clientChannel.writeAndFlush(fullHttpResponse); 示例代码里面并没有clientChannel这个变量
@toohandsome pipeline.getClientChannel()也可以
示例代码貌似只能追加?
我尝试替换原始的response
但是并不生效 使用 replace 也不生效,原始响应均无变化
请问可以直接修改响应内容吗?