在scala过滤器中拦截请求主体xml

时间:2017-11-10 22:33:56

标签: scala playframework

我是scala的新手并且正在努力弄清楚如何拦截过滤器中的请求主体,验证它的内容,如果发现有效,则继续下一个过滤器/控制器。我在

中看到了接受的答案

Scala play http filters: how to find the request body

但看起来它正在阅读响应主体并对其进行操作。另外,我通读了:

https://jazzy.id.au/2013/02/16/understanding_the_play_filter_api.html

我不清楚如何实现那里所说的:

If you want to parse the body at the filter level, then you'll have to buffer it, parse it, and then stream it again for the action to parse again.

0 个答案:

没有答案