相应头里写

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

相应状态写

 ctx.response().setStatusCode(302);

返回个空响应就行了

相关文章:

  • 2021-05-15
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2021-07-31
相关资源
相似解决方案