Skip to content

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

@libinglong

Description

@libinglong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions