Name
Upgrade: protocol/version
Synopsis
Using the Upgrade
header, the client can specify
additional protocols that it understands, and that it would prefer to
talk to the server with an alternate protocol. If the server wishes
to use the alternate protocol, it returns a response code of 101 and
indicates which protocol it is upgrading to, with the
Upgrade
header. After the terminating CRLF in the
server’s header response, the protocol switches.
Portion of client request:
Upgrade: HTTP/1.2
Portion of server response:
HTTP/1.1 101 Upgrading Protocols
Upgrade: HTTP/1.2
Get HTTP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.