Re: Structured Headers: URI type (#782)

Julian Reschke <julian.reschke@gmx.de> Thu, 09 May 2019 12:23 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 53251120021 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 9 May 2019 05:23:34 -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 Dess6dMb6ojU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 9 May 2019 05:23:32 -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 A2FD1120020 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 9 May 2019 05:23:32 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hOi39-0004kK-6V for ietf-http-wg-dist@listhub.w3.org; Thu, 09 May 2019 12:21:23 +0000
Resent-Date: Thu, 09 May 2019 12:21:23 +0000
Resent-Message-Id: <E1hOi39-0004kK-6V@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 1hOi35-0004i3-TV for ietf-http-wg@listhub.w3.org; Thu, 09 May 2019 12:21:19 +0000
Received: from mout.gmx.net ([212.227.15.15]) 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 1hOi33-0005lC-6e for ietf-http-wg@w3.org; Thu, 09 May 2019 12:21:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557404452; bh=fllTeHszbwpOjyKnTHOSX6rrRWBzJEOOHjIRlXxFBxY=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=PInsva1lVqlc44aA3NxIfuuXHB5fdkTVcIRfdoV44YGthU5UIh+3kT4BNFOT6uw4r zQy2kOV6LdjZ+fpGtS0w5bVFOltXbxWNVa7wfG3i8U1fkbL7+7RgVD2MOIOjrwPNMD SU7Iq1Le8Ud4S0XdXGYDJHtXLYZr5PyT7VU4fUZE=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([84.171.144.58]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Mg3Vt-1h1wOn1vUr-00NSyv; Thu, 09 May 2019 14:20:52 +0200
To: Michael Sweet <msweet@apple.com>, HTTP Working Group <ietf-http-wg@w3.org>
References: <31F60C8F-907A-44C4-B98E-3F49249A40B8@mnot.net> <CACweHNCOwhhZ55=zB_vcVRosSMaoOcAauqiPjma1J0JKPZwQtA@mail.gmail.com> <b2a4196f-7b07-9373-1892-671d739c629b@gmx.de> <34E2C344-88D7-41C4-B86F-45633B0A4C62@mnot.net> <CACweHNDz=yuK+-U_bNmucTGQgKqSWfew18RifWT83moq0S5WOw@mail.gmail.com> <c3f528c0-2562-f6f6-4fc1-6052c7b42e99@gmx.de> <CACweHNCFSj-zGO-O=U4CZYBfqL-5FcnwmMZeB-oih7w1nAFC0g@mail.gmail.com> <43350.1557381777@critter.freebsd.dk> <1D648FDA-3FE8-40B0-BFA5-5C3400E8C885@apple.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <cc85d773-d063-e084-4672-b0d98acc1130@gmx.de>
Date: Thu, 09 May 2019 14:20:52 +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: <1D648FDA-3FE8-40B0-BFA5-5C3400E8C885@apple.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:YOVQu6LxrDp+IWzCvI9fm1KxIYr+ksuokdjsKnMRaso3XOE4XOS rK/IztEwx9b10lUHA9MLClcODfs+QDb6BDGRvvfRHOw+omZL+ETslO+DSBZ5OSJUzLNzlO7 fXah/Pww5aVdz9oBhPbXhmJEz30y+LVWY03GqbuPNqyvDjV5xUD3vapn/RBQmd1fWDNP6AG aeBc/bbzcTfcOzVrPi/rg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:Lnxd6+6UBwg=:5+VVXmQDaeLAeqvAWdjTe2 RrKooIPMlto/nbHPdkr3nwq4lz4FroBaF35lQcYzlwKoVoxZ4dPczVlWes8xjHnYI9svbxpnN zt4M8g3uGuD8ZXDT175IXPqxtiTsGVLThiSTvXuXRmbbRcKPAQVeItnkyzLwaD5Uc+AoA/h9o +7UUcmyG5f1HlQGRBFY6qu3MNpcpnUgVBwska4Au6/BQxwpp7NzFFfmelSiqKvErEJ/qDFo4V CCRcl2DAj5B6cKyRWt8yaaezuUGQHg32Uoxukj4++qN8YlU7+UzRV8fYTGInJdPs7i4iMUc6w L+BtBj1kmv2+nHOrOdJLUmQSRo/1iYfSE51s5zj6St55EPZP4ylxsPuDnKZOm68TCL7uqlSBi LtVQzfNfqAX9zCtG/jenHAYUIuJN44lkadZKgrJ//GluFVwRtx+FKjQS6j4A0tGBnU/ugPvmq oxMp5ls+djGDlLDKbHMUE/wzXsDgFV7TxYp3qwoxVHBqRLLy+XAfUJg8U3quSM4no6dLPR2vt BKz/+mHZus/qx7+MmwaSl2CSpJoveiyRShBcxQhoLlYSYGZJwPubR/RJq3HucQiIczn+efygD 8xFDVdudwcRCPfF5/IhcMtdoOMBCWLHR/VYjKsmYfCbAGlYRTT+ZUp21zhVZ8AOjs02UHQoPa cR6urVrOJrB181M5svGm4eHd9WcEpl+mwv2tKz8SuhkiQClSzhWGj1ztpJEoF9ixP3O1wGp40 BWqvJ8ceFeUB7ecgWRgYB7uzhCirCsLCgSoeN+04Mb9Fwge+N9+3Ozx2kGqI80oed7z+PzIEr 5P/quuB2ezT4cExcyo6OCQRG22qqNOpSwJA5wx05e6tiLipvnzcX9NtQQVpSiYzFzWz31IJQp 36unCFnSuBmThUthxLCtGQZb5kErUuFKE1q7FHwlHvUUIHLIg1kDavSlcAIx1HgEtXKsnBMbL QozoHsR1Gfg==
Received-SPF: pass client-ip=212.227.15.15; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=2.351, 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 1hOi33-0005lC-6e ce4eb221ad8bd7bf891ee377afcc655d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Structured Headers: URI type (#782)
Archived-At: <https://www.w3.org/mid/cc85d773-d063-e084-4672-b0d98acc1130@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36622
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 09.05.2019 13:35, Michael Sweet wrote:
>> On May 9, 2019, at 2:02 AM, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>> ...
>> PS: Reminds me: Why does ABNF not have an 'import' facility ?
>>
>> This would be much clearer:
>>
>> 	import token68 from [RFC7235]

Has been suggested many times, but not specced (afair).

In HTTPbis, we use prose rules for that, such as

 > uri-host = <host, see [RFC3986], Section 3.2.2>

That at least makes the ABNF complete.


>> Than (from 7540):
>>
>> 	The ABNF [RFC5234] production for "token68" is defined in
>> 	Section 2.1 of [RFC7235].
>
> I've often wondered why the IETF doesn't publish the ABNF for RFCs someplace, e.g., "https://tools.ietf.org/abnf/rfcNNNN", so that such imports are not only possible but then automated tools can pull an official ABNF (with any typographical corrections applied that might slip through the RFC publication process) for use in validation, etc.
>
> We started doing that for IPP specifications several years ago and it has been very useful in validating attribute values, etc.

For many specs, you can simply extract it from the XML source.

For instance, we do that as part of building the HTTP specs, see
<https://github.com/httpwg/http-core/blob/master/httpbis.abnf>.

Best regards, Julian