简体   繁体   English

为什么Chrome或Firefox不显示未决请求的请求标头?

[英]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.

相关问题 为什么 HTTP 请求在 Chrome 中卡在待处理状态? - Why are HTTP requests getting stuck on pending in Chrome? 为什么在Chrome浏览器中按钮看起来不像在Firefox中那样好? - Why in chrome button doesn't look good as in firefox? 为什么我的jQuery代码不能在Firefox和Chrome中运行? - Why doesn't my jQuery code work in Firefox and Chrome? 为什么此代码在FireFox和IE中不能使用,而在Chrome中不能使用? - Why Doesn't This Code Work in FireFox and IE but does in Chrome? Google chrome播放mkv,但是firefox不播放,为什么? - Google chrome plays mkv but firefox doesn't, why? 显示临时标头和待处理请求 - Provisional headers are shown and pending requests Chrome没有在iframe,Firefox确认的ajax请求中添加标头 - Chrome not adding headers in ajax requests from iframe, Firefox ok 请求在 chrome 中待处理 - Request was pending in chrome Angular JS某些结果未在Google Chrome中显示,但在FireFox中显示 - Angular JS some result doesn't show in Google Chrome but show in FireFox 为什么 Chrome 开发工具(网络选项卡)不显示请求的响应? (未能加载响应数据:未找到具有给定标识符的资源)) - Why Chrome Dev tools (network tab) doesn't show the response for a request? (Failed to load response data: No resource with given identifier found))
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM