服务端简单重定向

相应头里写

 ctx.response().putHeader("Location","http://127.0.0.1/enjoy");

相应状态写

 ctx.response().setStatusCode(302);

返回个空响应就行了

原文地址:https://www.cnblogs.com/LiuPan2016/p/8933785.html