Re: What we call "headers"

"Roy T. Fielding" <fielding@gbiv.com> Tue, 17 March 2020 23:41 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 D8E533A0A8F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Mar 2020 16:41:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gbiv.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 uRLOxkz4Fix3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Mar 2020 16:41:48 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2A1353A0A8D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Mar 2020 16:41:47 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jELmN-0000AX-IF for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Mar 2020 23:37:47 +0000
Resent-Date: Tue, 17 Mar 2020 23:37:47 +0000
Resent-Message-Id: <E1jELmN-0000AX-IF@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <fielding@gbiv.com>) id 1jELmL-00009g-C3 for ietf-http-wg@listhub.w3.org; Tue, 17 Mar 2020 23:37:45 +0000
Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <fielding@gbiv.com>) id 1jELmJ-0000vB-5g for ietf-http-wg@w3.org; Tue, 17 Mar 2020 23:37:45 +0000
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7AA05361195; Tue, 17 Mar 2020 23:37:30 +0000 (UTC)
Received: from pdx1-sub0-mail-a68.g.dreamhost.com (100-96-54-11.trex.outbound.svc.cluster.local [100.96.54.11]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C4473360BA9; Tue, 17 Mar 2020 23:37:29 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
Received: from pdx1-sub0-mail-a68.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 17 Mar 2020 23:37:30 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|fielding@gbiv.com
X-MailChannels-Auth-Id: dreamhost
X-Irritate-Cold: 7ce212d95369f4a3_1584488250235_4076897391
X-MC-Loop-Signature: 1584488250235:2165039756
X-MC-Ingress-Time: 1584488250234
Received: from pdx1-sub0-mail-a68.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTP id 997607F66A; Tue, 17 Mar 2020 16:37:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=from :message-id:content-type:mime-version:subject:date:in-reply-to :cc:to:references; s=gbiv.com; bh=X0tRsytjAR+S1VbZKTKc5zi2ehU=; b= sdx+CD0PMwpKTGkkbUY9VxPeqBlW954QLWjnmFwY41/01uBf9ijyLZEzIHgiW7jF uD/NkQCH7gktR2dVz+iKvVjTboe3WnMLB0StZiyJieCKTZS/TWz7/S9MyjFWklwg FRdtFw+MsT3dybeRegE4qKCbkliXXQFc1toAkh0F728=
Received: from [192.168.1.4] (ip68-228-81-25.oc.oc.cox.net [68.228.81.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTPSA id 134277F70F; Tue, 17 Mar 2020 16:37:21 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a68
From: "Roy T. Fielding" <fielding@gbiv.com>
Message-Id: <E5170EDD-FAD8-42C6-AC17-AA179825ECB9@gbiv.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_62194E01-9D07-4E49-9790-9175F101E1FD"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 17 Mar 2020 16:37:20 -0700
In-Reply-To: <CF788613-EEE1-4321-BE98-780E7C77F607@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Julian Reschke <julian.reschke@greenbytes.de>
To: Mark Nottingham <mnot@mnot.net>
References: <CF788613-EEE1-4321-BE98-780E7C77F607@mnot.net>
X-Mailer: Apple Mail (2.3445.104.11)
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudefiedgtdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffktgggufffjgfvfhfosegrtdhmrehhtddvnecuhfhrohhmpedftfhohicuvfdrucfhihgvlhguihhnghdfuceofhhivghlughinhhgsehgsghivhdrtghomheqnecuffhomhgrihhnpehhthhtphifghdrohhrghdpghhithhhuhgsrdgtohhmnecukfhppeeikedrvddvkedrkedurddvheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopegludelvddrudeikedruddrgegnpdhinhgvthepieekrddvvdekrdekuddrvdehpdhrvghtuhhrnhdqphgrthhhpedftfhohicuvfdrucfhihgvlhguihhnghdfuceofhhivghlughinhhgsehgsghivhdrtghomheqpdhmrghilhhfrhhomhepfhhivghlughinhhgsehgsghivhdrtghomhdpnhhrtghpthhtohepjhhulhhirghnrdhrvghstghhkhgvsehgrhgvvghnsgihthgvshdruggv
Received-SPF: pass client-ip=23.83.212.21; envelope-from=fielding@gbiv.com; helo=bongo.elm.relay.mailchannels.net
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1jELmJ-0000vB-5g 713f8413bd4fb41bb081fe3d9964c169
X-Original-To: ietf-http-wg@w3.org
Subject: Re: What we call "headers"
Archived-At: <https://www.w3.org/mid/E5170EDD-FAD8-42C6-AC17-AA179825ECB9@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37452
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

> On Mar 16, 2020, at 11:38 PM, Mark Nottingham <mnot@mnot.net> wrote:
> 
> A little while back we made some changes in http-core regarding terminology and headers. This seems to have caused some confusion and comment, so I thought I'd summarise where I think we're at (Julian and Roy might want to chime in if they feel differently or want to add nuance). 
> 
> Note that this is _not_ a call to bikeshed the chosen terms*.
> 
> The corresponding spec text is at <https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#header.fields>, although of course we're still working on it.

It might be easier to see the changes vs 7231 in this diff

   https://httpwg.org/http-core/diffs/diff_semantics_frfc_to_07.html#part-9 <https://httpwg.org/http-core/diffs/diff_semantics_frfc_to_07.html#part-9>

One thing I noticed was that section 4 now says there are two separate areas
where fields can occur. I would prefer to define it as a possibly empty header
section and zero or more trailer sections (depending on the version or transfer
coding). I think it is better to provide for the general case instead of assuming
that chunked is the only example.  This is related to

  https://github.com/httpwg/http-core/issues/313

....Roy