Re: Structured Headers: URI type (#782)

Julian Reschke <julian.reschke@gmx.de> Thu, 02 May 2019 06:00 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 E9EF8120052 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 1 May 2019 23:00:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.9
X-Spam-Level:
X-Spam-Status: No, score=-2.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 SW39NYbPXWYU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 1 May 2019 23:00:48 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 35B42120006 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 1 May 2019 23:00:48 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hM4k8-0003hE-FP for ietf-http-wg-dist@listhub.w3.org; Thu, 02 May 2019 05:58:52 +0000
Resent-Date: Thu, 02 May 2019 05:58:52 +0000
Resent-Message-Id: <E1hM4k8-0003hE-FP@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <julian.reschke@gmx.de>) id 1hM4k6-0003gS-EM for ietf-http-wg@listhub.w3.org; Thu, 02 May 2019 05:58:50 +0000
Received: from mout.gmx.net ([212.227.17.22]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <julian.reschke@gmx.de>) id 1hM4k5-0005tQ-3k for ietf-http-wg@w3.org; Thu, 02 May 2019 05:58:50 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1556776703; bh=mO77jLhXrWrqT9rJyQ1iIrG4xM08KPt0MRJCoAiQ0sk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=GaZEIZp9zsK6u+c/kAWXpI6iM22o0TIC9tHlUC4hlWDbWRO6q5e0Noapqp58UBiww nPZ8gX7OFinJdGsh0uitexs3bTqNrLwPpRoPtMszTf3YJIpXbb+rU6l0NV9+FPSMXZ p44oIw8tAeVD22o6eHrgtO1nCpHXwInT1xqM2fDM=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([84.171.156.16]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lg6op-1gxWTM2tWl-00pejF; Thu, 02 May 2019 07:58:23 +0200
To: Mark Nottingham <mnot@mnot.net>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <31F60C8F-907A-44C4-B98E-3F49249A40B8@mnot.net> <0bab4850-fbe6-a318-71b2-a0e89a74ae74@gmx.de> <98A30D03-556A-4163-AE6B-E79760D34B2B@mnot.net>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <cdbb5212-6928-39c7-de90-b9c643949057@gmx.de>
Date: Thu, 02 May 2019 07:58:21 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <98A30D03-556A-4163-AE6B-E79760D34B2B@mnot.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:4VWFpLpy60w/8quBWA2MXXoO5xZuNbfdKS0he6HFrEHjfMRoFch NayScoVNzAribd4NKurpFtB6n0aMG/B76NdaGmDeseCEXDyTTuMaTtehGS3KfnrMhY0cfKr XqwFkN9N7ESUMf+6pD/eynBSqW563kT0r2mHZccF922VCd5f2ZBL6ci2OGgEaSMRGi72ywe G5AJk6QAvihFo6bFPq7Kg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:uJp9+GHEtIo=:4MwdmTgyg8MbrnLLXpcXnZ hkfN0ULk7fAtEtle5r0LkVIRpjeBRkSl5uoxXiDeTGNpzOdhC2G78rr4jHOWa5q9mgV0b/Vqb IL9xKQbOWFMdLtxYlL0vhk+7fWgmCKsLQUc6g6XIN36A7XS/ad1UuYF1nlQjRzhDw0rTsuQPP gj5/T84y0oJKar5HocuX6bzCyAcwKGxt6IEvpAdE/5EXXvee6fHhJheoTwMImudXl7iaxO05i TUkr3h53pW78D/CwSZNlSofKFscuxgbFykHaX36o0jcLHt6/FG3BLjSpp6wD7f25Wi9ZmMt7I aSwCtKKgQnpZr218Q9cZMlCYUN75iM4e9Y+axMwGJAzADR2pgu7vh0sbNYvXwTZJYGf1PpIGI HvMi88WJOplYplOUSC7wY5wkW2McxWRrJsHqXZbg3QoyeWICJ2BM7E6m/dcm2XgCChka5Hr5C kbL8FCTJubhK2B+jRyW6j/eemfvS3Ar9czDjk6boISRIfbE8S+yRDz9ESZCfCqxwf7saeGCsj yuNdt8nXv3HOVJ9D2weNLP4T/uZY4MjZlw3TI6x7Nfk8s/F8v9lLKaLyzqbR4//pzmnrMCN3P SBX0s7exxwsFfCJSc5Zlt0YMMNL1jlaYWvFlmazwXFXmVXmXeae8spmOKbZDbT5qhJKzOMJz/ +aEFO1V6Q3VtPG5EhHrKntXhUCX7t/ieNN8gTp3HHGti5FBWnJzrNj6fsUH+yF5pAEeBKoGNW mr9cm5qY/p9cA+/EWonXdTypY1MFce8NPkqGD6lGIH41ls3lVR2A8KTP+gMhQEcquMRzQknEx Y+TIYQvN7r/a5g6S+Ai4CmKsk02ad9gvCtDlUpBPLyEFVKC98H+axKLyDBKomqlWlOMUOb28r P2K2KL78bkQAL4Ngxu/1EfdifT1fYd9674XBqRxkPaZsyX1MUEKGoc2Wxq/eNqSrWGHKzUD8f Ob/F0kqZ1Fw==
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: AWL=1.763, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1hM4k5-0005tQ-3k 5d1d29c7b4f004d8b37d70c41e8b28e0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Structured Headers: URI type (#782)
Archived-At: <https://www.w3.org/mid/cdbb5212-6928-39c7-de90-b9c643949057@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36573
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 02.05.2019 07:45, Mark Nottingham wrote:
> Could you explain why it's compelling?
>
> It's already possible to map a link header to the existing data structures (there are a couple of ways you'd do it).  It's true that the syntax wouldn't be identical to a Link header, but that hasn't been a goal for other parts of SH; in this sort of situation, we've assumed that some mapping function would be necessary (e.g., negotiating to send the new header as SH-Link, or some other mechanism).

I understand it was not a goal, but that doesn't mean it wouldn't be
nice to get to that as closely as possible...

> I'd be much more supportive of doing a URI type if we could get agreement for *and* implementation of a common data model for URIs in SH. However, it appears that there's disagreement about that; browser folks want to reuse the WHATWG URI specification (which is sensible, from their viewpoint), whereas others don't like that spec. Exposing it as just a string doesn't seem to add much at all.

It indeed just adds a new syntax (no processing model is needed, true).
For URIs, it's kind of nice as it uses a delimiter that can't be used in
URIs anyway.

> We could talk about this a lot more, but I suspect it would take at least a few months to conclude the discussion. I'd rather ship the spec; if we can agree on a new type down the road, we can always add it with an update.

That is true, but then updating both spec and implementations is always
more work then including things from the start. It's a trade-off.

 From a practical point of view, would you expect the spec to be
replaced by a new one, or should there be an extension point/hook so a
delta spec can be written?

Best regards, Julian