[英]Why doesn't Chrome or Firefox show request headers for pending requests?
If you are building a website and put a breakpoint in your server code so that a page cannot be returned until you move past the breakpoint and you (for instance) reload the page in Chrome or Firefox (haven't tested others), you can't see any information about the request. 如果您正在建立一个网站并在服务器代码中放置一个断点,以使页面无法返回,直到您经过该断点,并且您(例如)在Chrome或Firefox中重新加载了该页面(尚未测试其他页面),您可以看不到有关该请求的任何信息。
While debugging, sometimes it's easier to view information about the HTTP request in the browser's dev tools than it is to find that information in the server code. 调试时,有时在浏览器的开发工具中查看有关HTTP请求的信息比在服务器代码中查找该信息要容易。 Why am I not able to see HTTP request information until a response is returned by the server? 在服务器返回响应之前,为什么我看不到HTTP请求信息?
From: https://bugs.chromium.org/p/chromium/issues/detail?id=294891 : 来自: https : //bugs.chromium.org/p/chromium/issues/detail?id=294891 :
Headers displayed for pending requests are provisional. 显示待处理请求的标头是临时的。 They represent what request was sent from Blink to Chromium. 它们代表从Blink发送到Chromium的请求。
We do not update headers until server responds to avoid additional notification used only by DevTools. 在服务器响应之前,我们不会更新标头,以避免仅由DevTools使用的其他通知。
To watch real network activity you can use chrome://net-internals 要观看实际的网络活动,您可以使用chrome:// net-internals
It's not clear what that means, but that's the cited reason. 目前尚不清楚这意味着什么,但这就是所引用的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.