Re: [httpapi] Link Hints?

Henry Andrews <andrews_henry@yahoo.com> Wed, 19 July 2023 21:13 UTC

Return-Path: <andrews_henry@yahoo.com>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47948C15155A for <httpapi@ietfa.amsl.com>; Wed, 19 Jul 2023 14:13:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WXlb70IhbIRY for <httpapi@ietfa.amsl.com>; Wed, 19 Jul 2023 14:13:00 -0700 (PDT)
Received: from sonic316-12.consmr.mail.bf2.yahoo.com (sonic316-12.consmr.mail.bf2.yahoo.com [74.6.130.122]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81001C151553 for <httpapi@ietf.org>; Wed, 19 Jul 2023 14:13:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689801179; bh=kmIcWzgkyVliB5jx8JrvLV9RYkwGCvMltzQLkFLIotU=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=IrfPtYRES1S9kdxinQrk+F+rynVh0qXFDMVgjHC9C3uSO0wTJ5EEbNci7RKDBtm1YAkuP7j27XAT2PWE3BkUj26CLspLZ8lYXq7l3X2aC2Y4b8iJrbNZXojxE3CR6R/uAa50WKTzWIgRaoJNKpRPlgwJE6LIKPg4V/z7q0fjCzY2ZMdyl7xMLPxJ4PHGmx4RocrbaoLu3yIJ9E61etyQf81qTo9qG0Mi+EqzeGh7ufMBPwgbpVxZRPv2qKzdnJSZBv+/shLvzlvF9suhB6Z7/hUGck84857VzOM5iw0tsPsmhD4ZMZcGT8ykeKbntIsmapvA0CCKwKCz4ltwZUDWdQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689801179; bh=4ZPh3FH0QzwJrYQ5Eqi+mOb181HfmN4SN3mR1FKBO6r=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=AiFhsNmlWDV81c4/sCaB9QUEuDN1Ll/FZx2UwMhqCKblDzNOoNMH8pzQ1L/lv62V3XcZDrPqoQwROEDIhE5LDF5e740MXUE89hyQdMIAoLjq2n/Kiu+CT0KNG7WMr1RgccyOQq4OWiWRjlmSuGzWtDWMVDikc8KHdIjuYK0+qBvH1WEGShRlBMvYp+JB9Bmx0b2AR8uXHrQedLS1WjBCjiXFYvIMNagnOH1L/QmMtiQmMWWQ/GF2vw5QA/hvCiUayBL5WBWLiymwdHvbVWLVm7+pGgDoCtT4kp/qIbaHTrisuYb6tfNrTvpiW+N8ThX+RK5YJseyLOFSSHeLbxJQ5A==
X-YMail-OSG: J8g1Q.UVM1lvLRmJ8jVV8qjRorCJz2jkQTWIeM_WJ8ldTXVdmIgBsRuX7oaqVnh RZRj5AtljYQ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p5YAWqO1uwTMYR4FS99ZkoRBPCbESs8y15ayrMKXTcGePJQ59PZO_ qU1_mcImKwEbUer7wSRHEnGMops61.OtoHtFI.jrZ1yfYSbHCquWZjwo.HDk8RI_Gc9FoSuIxKkn IneEu9pRofTA25AadC2g4Nue_
X-Sonic-MF: <andrews_henry@yahoo.com>
X-Sonic-ID: 4ac7a220-8ec9-4303-b5ed-ff51f9f97a01
Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Wed, 19 Jul 2023 21:12:59 +0000
Date: Wed, 19 Jul 2023 21:12:51 +0000
From: Henry Andrews <andrews_henry@yahoo.com>
Reply-To: Henry Andrews <andrews_henry@yahoo.com>
To: HTTP APIs Working Group <httpapi@ietf.org>, Mark Nottingham <mnot=40mnot.net@dmarc.ietf.org>
Message-ID: <136829646.1451187.1689801171999@mail.yahoo.com>
In-Reply-To: <10303857-C095-44BB-850F-0F6B09D9C875@mnot.net>
References: <10303857-C095-44BB-850F-0F6B09D9C875@mnot.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_1451186_389116418.1689801171997"
X-Mailer: WebService/1.1.21647 YMailNorrin
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/6S7EHRHpDgxx-qgVSGOVonkvU-s>
Subject: Re: [httpapi] Link Hints?
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Jul 2023 21:13:04 -0000

 I included something like link hints when I revamped JSON Hyper-Schema back in 2017.  While Hyper-Schema's indefinitely in limbo AFAICT, it was basically a way to construct links using a template structure in the schema plus data from the JSON instance.  So the "targetHints" attribute would correspond to link hints, but in a fairly direct "here are the HTTP headers we think you'd get if you asked" sort of way.  If I'd been aware of the link hints proposal I probably would have built on that instead.
thanks,-henry
    On Wednesday, July 19, 2023 at 02:03:08 PM PDT, Mark Nottingham <mnot=40mnot.net@dmarc.ietf.org> wrote:  
 
 Hi HTTP API folks,

A longish time ago, I wrote a spec for 'HTTP link hints' that describe aspects of a HTTP resource in a fashion that's suitable for adorning links. For example, the media type(s) available on the other end, and the HTTP method(s) it might support.

  https://datatracker.ietf.org/doc/draft-nottingham-link-hint/

This is to a large degree paving the cowpaths that have been created in HTTP (e.g., the Allow header) and HTML (e.g., the 'type' attribute on links) in a way that they can be used in anyplace a link can. It's also a way of coordinating common link attributes, because RFC8288 makes attributes per-format.

I didn't push for standardisation because I wanted to make sure there was actual need for it / interest in it. I've heard some of that in backchannel recently, and was wondering what the WG thought about adopting this (or something like it).

Cheers,


P.S. Chairs I'm happy to chat about this for a few minutes next week if there's time in the meeting. If not, no worries.

--
Mark Nottingham  https://www.mnot.net/

-- 
httpapi mailing list
httpapi@ietf.org
https://www.ietf.org/mailman/listinfo/httpapi