Re: [apps-discuss] I-D Action: draft-nottingham-http-browser-hints-00.txt

Dzonatas Sol <dzonatas@gmail.com> Tue, 17 May 2011 14:08 UTC

Return-Path: <dzonatas@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4D3ACE081C for <apps-discuss@ietfa.amsl.com>; Tue, 17 May 2011 07:08:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.837
X-Spam-Level:
X-Spam-Status: No, score=-3.837 tagged_above=-999 required=5 tests=[AWL=-3.532, BAYES_00=-2.599, FB_WORD2_END_DOLLAR=3.294, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d9Xh8SvPTXsz for <apps-discuss@ietfa.amsl.com>; Tue, 17 May 2011 07:08:02 -0700 (PDT)
Received: from mail-px0-f179.google.com (mail-px0-f179.google.com [209.85.212.179]) by ietfa.amsl.com (Postfix) with ESMTP id AFA71E0773 for <apps-discuss@ietf.org>; Tue, 17 May 2011 07:08:02 -0700 (PDT)
Received: by pxi2 with SMTP id 2so328884pxi.38 for <apps-discuss@ietf.org>; Tue, 17 May 2011 07:08:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=FNIil18glqG18tIB8Gi0v27xcoGVfKhTSmofeo/Y3ik=; b=CAVG+UX5ecWW77Qy7j7LDfwdokWlnkiVXTOuvcI59xD8XYfqBLuzFSb8v6pbG5EwSc HmzEIXJGTnXtPOHd5E2b3DgABIVB1qvYyVq55WkY1OkJDoiV7Dlh5ojJ0yyY+pU826v/ QC73eAHyNAmEeWAvuL8O+QJ1KXqmavV42ogOM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=EzeTuHf6jEfytS5NAyMSa/c/MP5jiHfJxckfevkb6TviNYByRaFS43slafXZllmlVH wh7KHOvG+Z1nwgbpP2ohJeacBgn2Z3k8Gy4LEcXvmGZzxLvC7fEm+WOD5DVfhZNHJtxn zggxut5T7t/SQdrJRobgV96QnVCXkp+s5W1gU=
Received: by 10.142.61.18 with SMTP id j18mr465668wfa.75.1305641282427; Tue, 17 May 2011 07:08:02 -0700 (PDT)
Received: from [192.168.0.50] (adsl-70-133-70-225.dsl.scrm01.sbcglobal.net [70.133.70.225]) by mx.google.com with ESMTPS id t9sm395832pbq.31.2011.05.17.07.08.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 May 2011 07:08:01 -0700 (PDT)
Message-ID: <4DD28114.7010601@gmail.com>
Date: Tue, 17 May 2011 07:07:16 -0700
From: Dzonatas Sol <dzonatas@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11
MIME-Version: 1.0
To: apps-discuss@ietf.org
References: <20110517042149.2176.20778.idtracker@ietfa.amsl.com> <1603FA8A-5BBC-4574-815A-2E13850F1D52@mnot.net> <20110517053416.GB26443@1wt.eu> <FC3C8827-D071-4EE8-B7DA-CBA7E26ACF1B@mnot.net>
In-Reply-To: <FC3C8827-D071-4EE8-B7DA-CBA7E26ACF1B@mnot.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [apps-discuss] I-D Action: draft-nottingham-http-browser-hints-00.txt
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 May 2011 14:08:03 -0000

On 05/16/2011 11:16 PM, Mark Nottingham wrote:
>
>> Thus we should probably have two distinct well known files. In order to
>> reduce the number of requests, we could suggest that if the browser-hints
>> file does not contain any connection information, then the browser is
>> invited to get /.well-known/connection-hints too as a complement.
>>      
> I have a pretty strong suspicion that this will end up being too complex, but let's see what others think.
>
>    

The ReSTful paradigm is useful here such that any specific field in the 
browser-hints file can be found by path.

GET /.well-known/browser-hints/max-conns

I'm sure this leads to PUT, POST, and DELETE methods as well for easier 
connection negotiation, management, and hints of what paths are 
streams/pipelines, or like capabilities.

For example, I use these next two to combine all data into one stream 
that appears like a structure, with the specific path:

GET /.well-known/browser-hint/s   # all hints with data in XML format
GET /.well-known/browser-hint      # list of categories known in XML format

As above:
GET /.well-known/browser-hints    # suggested default for JSON fromat

I suggest this "symbolic" reservation for *explicit* stream methods and 
logical devices  (combined path use-cases from SYSV, VMS, and 
IETF-VWRAP-LLIDL)
GET /.well-known/browser-hint$
GET /.well-known/browser-hint$max-conns

Conservative approach to avoid query arguments or extra headers that 
specify format:
GET /.well-known/browser-hint.xml         # XML alternative
GET /.well-known/browser-hint.json         # JSON alternative
GET /.well-known/browser-hint.json.xml  # json in XML format: 
https://datatracker.ietf.org/doc/draft-rsalz-jsonx

I think XSLT with optional script can be used for further 
transformations of paths and streams.

-- 
--- https://twitter.com/Dzonatas_Sol ---
Web Development, Software Engineering, Virtual Reality, Consultant