这是Node http events之一。我做了显而易见的谷歌搜索,但没有找到太多信息。它到底是什么?
这是Node http events之一。我做了显而易见的谷歌搜索,但没有找到太多信息。它到底是什么?
HTTP Upgrade 用于指示希望或需要切换到不同版本的HTTP或其他协议,如果可能的话:
根据IANA注册表,仅有3个注册提及它(其中一个在HTTP规范中)。The Upgrade general-header allows the client to specify what additional communication protocols it supports and would like to use if the server finds it appropriate to switch protocols. The server MUST use the Upgrade header field within a 101 (Switching Protocols) response to indicate which protocol(s) are being switched.
Upgrade = "Upgrade" ":" 1#product
For example,
Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
The Upgrade header field is intended to provide a simple mechanism for transition from HTTP/1.1 to some other, incompatible protocol.