如何检查网站是否具有http/2协议支持 [英] How to check if website has http/2 protocol support
问题描述
关于http/2协议的话题很多,但我想知道是否有一个运行该协议的网站.
There is a lot of topics about http/2 protocol, but I wonder if there is a working website with this protocol.
即
我们可以决定使用http://
或https://
但是我们如何编写 http/2 请求?
We can decide to use http://
or https://
but how can we write a http/2 request?
我知道此协议取决于服务器的功能,但是我无法找到一种方法来检查网站(例如google.com
启用了http2
支持.
I am aware that this protocol depends on the server capability, but I can not find a way to check if a website e.g. google.com
has http2
support enabled.
正如我在这张图片中看到的那样,所有现代浏览器都支持该协议.
我还没有看到任何可能看起来像新一代协议的链接.
As I can see in this picture, all modern browsers support this protocol.
I have not seen any link that could look like a new generation protocol.
我的问题是:我们是在不知道的情况下使用http/2协议还是童话故事?
My question is: Are we using http/2 protocol without knowing or it is just a fairy tale?
推荐答案
您可以在以下位置对其进行检查: Chrome开发工具(F12) > 网络> 协议
You can just check it in: Chrome Dev Tool (F12) > Network > Protocol
它将告诉您所使用的协议和每次传输的域.
It will tell you the protocol used and the domain of each transfer.
http/1.1 = http 1.1
h2 = http 2.0
http/1.1 = http 1.1
h2 = http 2.0
注意:如果看不到协议列,只需右键单击任何标题并选中协议" 标签.
Note: If you cannot see the Protocol column just right-click on any header and check the "Protocol" label.
这篇关于如何检查网站是否具有http/2协议支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!