Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么修改StatusCode? #64

Open
CcSimple opened this issue Sep 30, 2020 · 2 comments
Open

怎么修改StatusCode? #64

CcSimple opened this issue Sep 30, 2020 · 2 comments

Comments

@CcSimple
Copy link

怎么可以获取结束指令(return,throw,exit)中的code, 以及怎么可以修改response 的 StatusCode。

@CcSimple
Copy link
Author

看了下 FunctionХ库 的Web函数库, 可以考虑添加HttpServletResponse的setStatus方法

@zycgit
Copy link
Collaborator

zycgit commented Oct 7, 2020

设置 修改response 的 StatusCode

是一个不错的想法,通过 Web函数库可能还不是一个最好的方式。我在思考是否可以考虑使用 return 的状态吗。来充当这个设置功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants