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

如何在rose框架内部对request进行wrapper #44

Open
libinglong opened this issue Sep 19, 2019 · 0 comments
Open

如何在rose框架内部对request进行wrapper #44

libinglong opened this issue Sep 19, 2019 · 0 comments

Comments

@libinglong
Copy link

由于rose的数据处理是先通过参数解析器,然后是拦截器,因此如果在拦截器部分进行转发,此时数据有可能已经被参数解析器读完了,因此难以对request进行wrapper,目前项目中使用的是servlet的过滤器,也就是在rose外部进行处理的,但这又导致我们难以拿到rose内部方法的注解,因此还是需要配合拦截器。
对比mvc,拦截器是在参数解析器之前,就不存在这个问题。是否考虑增加一个扩展点,让用户可以在框架处理数据前拿到request和response进行预处理?

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

1 participant