我正在编写一个简单的应用程序,以确定某些网站是否支持http / 2。
根据我在草稿中阅读的内容:
https://tools.ietf.org/html/draft-ietf-httpbis-http2-07#section-3.2
我应该能够发出诸如
GET / HTTP/1.1
Host: server.example.com
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: <base64url encoding of HTTP/2 SETTINGS payload>
Run Code Online (Sandbox Code Playgroud)
然后如果他们支持http / 2,则响应应为:
HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Upgrade: HTTP/2.0
[ HTTP/2.0 connection ...
Run Code Online (Sandbox Code Playgroud)
我试图确切地了解HTTP2-Settings
请求标头的值是什么。
我希望有人可以解释示例中应包含哪些信息。