- From: Mike Bishop <mbishop@evequefou.be>
- Date: Thu, 2 Jul 2026 14:03:32 +0000
- To: Demi Marie Obenour <demiobenour@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
- Message-ID: <IA0PPF726CD7A1F9AAC742AE96027D21535DAF62@IA0PPF726CD7A1F.namprd22.prod.outlook.>
The upgrade token actually defined for HTTP/2 was "h2c." RFC 7540 (see https://www.rfc-editor.org/info/rfc7540/#section-3.2) defined the exchange this way: A server that supports HTTP/2 accepts the upgrade with a 101 (Switching Protocols) response. After the empty line that terminates the 101 response, the server can begin sending HTTP/2 frames. These frames MUST include a response to the request that initiated the upgrade. That is, following the empty line, the server would send its SETTINGS frame and its response on an HTTP/2 stream — what the client initially sent would be considered to have been the request on Stream 1. However, note that RFC 9113 (the successor to 7540) deprecated this usage; you'll find very few servers that actually implement switching to HTTP/2 from an HTTP/1.1 connection. ________________________________ From: Demi Marie Obenour Sent: Wednesday, July 1, 2026 4:30 PM To: HTTP Working Group Subject: HTTP/2 upgrade: how to send the response? Suppose I send the following request: POST /something HTTP/1.1 Upgrade: HTTP/2.0 Connection: Upgrade Content-Length: 8 Example and get the following response: HTTP/1.1 101 Switching Protocols Upgrade: HTTP/2.0 Connection: Upgrade How is the server supposed to send the response to the client? -- Sincerely, Demi Marie Obenour (she/her/hers)
Received on Thursday, 2 July 2026 14:03:38 UTC