服务端简单重定向

相应头里写

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

相应状态写

 ctx.response().setStatusCode(302);

返回个空响应就行了

posted on 2018-04-24 21:23  --LP--  阅读(137)  评论(0编辑  收藏  举报

导航