【发布时间】:2020-08-02 22:39:30
【问题描述】:
在使用 curl 和 HTTP 1.1 向我的网站发出请求时,我明确看到了我的 keep-alive 连接标头:
$ curl https://website.com/ -i
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 2
Connection: keep-alive
但是对于 Chrome 的开发者工具和 HTTP 2,标头丢失了:
Content-Type: text/html; charset=utf-8
Content-Length: 2
在 HTTP 2 中不发送连接标头是否正常(以及为什么)?
【问题讨论】:
标签: tcp udp http2 keep-alive