HTTP/2 plaintext upgrade

Cory Benfield <cory@lukasa.co.uk> Thu, 26 January 2017 10:17 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D5F7129515 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:17:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lukasa-co-uk.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jVaHRZlY52ig for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:17:09 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C475129448 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 02:17:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWh4D-0008Af-4b for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 10:14:09 +0000
Resent-Date: Thu, 26 Jan 2017 10:14:09 +0000
Resent-Message-Id: <E1cWh4D-0008Af-4b@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cWh49-00089b-Vf for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 10:14:06 +0000
Received: from mail-wm0-f46.google.com ([74.125.82.46]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cWh43-0001wc-S1 for ietf-http-wg@w3.org; Thu, 26 Jan 2017 10:14:00 +0000
Received: by mail-wm0-f46.google.com with SMTP id d140so3690696wmd.0 for <ietf-http-wg@w3.org>; Thu, 26 Jan 2017 02:13:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=eVealEdaM3VUjzIbOfuKZfIOECGxBA4eMeFeRvoVKuY=; b=sctx7eLjqe6IawTD3px8NkkPB/YswT0NqLcta9EB2oObsr5Y4ccDwRLHpK6FIkIRbi P8uLdZaRMEb566LSJwza+65GexQmf2sgqs5XS15dTFiVMFoYeGrqgZid2lOqtVS0e5Sq SCYWKdpJAF5PQkSLeAUXoMWnknWAT51hZlWc/POzofaZrTAEswAuV+TZjRkmXeuP6vL7 R5/oosWGRK8rPpNxeEbqUatrLWRzSb5yZ2Q5Ht1pbaEoGfVMHP0d29IyBkOngGRzyqUO T3cgC7XMWxD/V/hPfSpSg2ntWhuEa7bGnG/zLaQn9MLlteKVnkaIZE2KVxRLIiDTD6Fz eSyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=eVealEdaM3VUjzIbOfuKZfIOECGxBA4eMeFeRvoVKuY=; b=Pj2u0nqi+TZtEAw6kAk2MdTbhZPHOSb9hQeLmirzGYJvHdjt3sluG6hU74fIjkYIlY 12p6dhRD59Cci5SuKnGYy8xOjgbIXmhN13MZQjfnLc13AsWUHNVXcwsLWlZ8UtFEZsJ/ mJVqQw4PIb7iUrywQ931O8WslMzYri31jtQ+o/sSLAApeJX93iWates9+X+s844/KIQ7 60SkgrlLKuFZapGR/lNt6CNc9odizO4kgNG+pcN1SgqhxxMaOeDmQok1LyrI6JyT76kC Z3N+jmhvzAdGHvEaIfhFox4LVd3DfS1GRCXvuABjAvHk/yvREZLOz7kSkAC4SYm4AENo gJ5w==
X-Gm-Message-State: AIkVDXKLir505UmjTZkh5PhSO4TBrQm9cvP35h63Op8ETgM68e8z8eofo4BbVrU+HSFXvw==
X-Received: by 10.28.221.11 with SMTP id u11mr1843342wmg.75.1485425612881; Thu, 26 Jan 2017 02:13:32 -0800 (PST)
Received: from [192.168.1.3] (227.71.125.91.dyn.plus.net. [91.125.71.227]) by smtp.gmail.com with ESMTPSA id z134sm35633983wmc.20.2017.01.26.02.13.31 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 02:13:32 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Message-Id: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Date: Thu, 26 Jan 2017 10:13:30 +0000
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.46; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWh43-0001wc-S1 7a7fabd43669b814a66817a5e1ada944
X-Original-To: ietf-http-wg@w3.org
Subject: HTTP/2 plaintext upgrade
Archived-At: <http://www.w3.org/mid/AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33382
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I’ve got a question about HTTP/2 plaintext upgrade. RFC 7540 Section 3.2.1 says about the HTTP2-Settings header field:

> The content of the HTTP2-Settings header field is the payload of a SETTINGS frame

My initial implementation provided an entire SETTINGS frame in the HTTP2-Settings field, but a contributor has pointed out that the word “payload” may mean that only the body of the SETTINGS frame should be provided. It’s not really entirely clear to me in the text which I should do, and there are no textual examples either, so I’m genuinely not sure.

Can I get an idea of what other implementers have done here?

Cory