Chrome开发人员工具-网络-如何仅过滤POST和PATCH请求? [英] Chrome developer tools - Network - how to filter only POST and PATCH requests?

查看:402
本文介绍了Chrome开发人员工具-网络-如何仅过滤POST和PATCH请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome浏览器中-Chrome开发者工具-网络-通过在过滤器"编辑框中放置"method:POST",我只能显示POST请求. 我应该使用什么过滤器才能同时看到PATCH和POST请求?

In Chrome browser - Chrome developer tools - Network - I can show only POST requests by putting "method:POST" in the Filter editbox. What filter should I use in order to see both PATCH and POST requests?

谢谢

推荐答案

过滤器选项功能非常强大,但仅限于使用AND(连接).所以简单的解决方法是使用底片... 例如,在您的情况下,您可以创建以下过滤器:

Filter option is quite powerful but it's limited to only using AND (conjunction). So simple workaround would be to use negatives... For instance in your case you could create filter like this:

-method:GET -method:OPTIONS -method:PUT

-method:GET -method:OPTIONS -method:PUT

这应该过滤掉大多数请求.如果您还有其他令人反感的HTTP动词,则可以轻松添加它们.

This should filter out most of the requests. If you have other offending HTTP verbs you can easily add them.

这篇关于Chrome开发人员工具-网络-如何仅过滤POST和PATCH请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆