Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在实现一个简单的 HTTP 客户端。
我应该将哪个标头添加到 HTTP 1.1 请求中以使其无法保持活动状态?
您需要添加标题:Connection: close. 目前所有连接都是永久的,客户端必须明确声明它想要关闭连接。
Connection: close