We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
比如我同一个项目里面有下面这两个异步请求 GET /A/B/C POST /A/B/C 这两个请求我是需要模拟不同的返回数据的,这个如何做到呢?
目前我们在server.conf里面只能配一个 rewrite ^/A/B/C$ /page/A/B/C 这个是没办法区分httpMethod的。
The text was updated successfully, but these errors were encountered:
需要自己把连接 rewrite 到某个 jsp 文件上面,然后在 jsp 中自己判断 method 的来返回不同的数据。
Sorry, something went wrong.
现在jello的spa的demo就是这么做的吗?两个都是get请求,是通过判断其他特征返回不同数据?看了下test的文件,不太懂这里两个相同请求是怎么配置的。
No branches or pull requests
比如我同一个项目里面有下面这两个异步请求
GET /A/B/C
POST /A/B/C
这两个请求我是需要模拟不同的返回数据的,这个如何做到呢?
目前我们在server.conf里面只能配一个
rewrite ^/A/B/C$ /page/A/B/C
这个是没办法区分httpMethod的。
The text was updated successfully, but these errors were encountered: