Re: draft-snell-httpbis-mget: Proposal for a new SHORTER format to header field :path

D R <de3940@gmail.com> Thu, 27 June 2013 09:54 UTC

Return-Path: <ietf-http-wg-request@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 5436B21F9CBB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Jun 2013 02:54:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.298
X-Spam-Level:
X-Spam-Status: No, score=-9.298 tagged_above=-999 required=5 tests=[AWL=1.300, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ksqTzBqcr3nc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Jun 2013 02:54:48 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E019021F9CCA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 27 Jun 2013 02:54:47 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Us8uK-0006R5-RI for ietf-http-wg-dist@listhub.w3.org; Thu, 27 Jun 2013 09:54:28 +0000
Resent-Date: Thu, 27 Jun 2013 09:54:28 +0000
Resent-Message-Id: <E1Us8uK-0006R5-RI@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <de3940@gmail.com>) id 1Us8u5-0006La-Vd for ietf-http-wg@listhub.w3.org; Thu, 27 Jun 2013 09:54:14 +0000
Received: from mail-la0-f65.google.com ([209.85.215.65]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <de3940@gmail.com>) id 1Us8u5-0008LF-4n for ietf-http-wg@w3.org; Thu, 27 Jun 2013 09:54:13 +0000
Received: by mail-la0-f65.google.com with SMTP id lx15so236542lab.0 for <ietf-http-wg@w3.org>; Thu, 27 Jun 2013 02:53:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sIbjFZujs8ULW2NmHtTp8ko8yCA6E4G0PGrPR+YibfE=; b=gcdfpcpNlV7L+oEiL8tt6+Bhq92CsIiozSdHvASydzkT9jfwzZIVlPYe94ZY/2GTO7 Ujb1W6tJ5EJIdRekdHx9UpUlQHIcfwB4Ybm5p/z/S4lnQyyFNTNIwhZkgLA1kKqbjTMy 4G+KHZGlgA4OYgs6oTX54ANwd1zQISum/+NEf02FfHuEKjMxbsnJ3Gkz2zvuwwhOkJPK HlpxpV19Lowv+s/HOJ4LD7V914Nm7/4xCaiY/QcQQAcseYU6w3qyMd6B6wowaC19wwP/ qMn+fuu8+xmjTpZvuRp1mqJMA/JWX5eJibIhC09yzFzKWLrxsJM7ABWbFqAo/YLtidL6 ocCQ==
MIME-Version: 1.0
X-Received: by 10.152.19.40 with SMTP id b8mr3773901lae.34.1372326826082; Thu, 27 Jun 2013 02:53:46 -0700 (PDT)
Received: by 10.112.81.4 with HTTP; Thu, 27 Jun 2013 02:53:46 -0700 (PDT)
In-Reply-To: <CAA4aZewMQNwepWttXXweuT=-P5ZwpV2+0CA=0bwEMmacQeaMZg@mail.gmail.com>
References: <CAA4aZewMQNwepWttXXweuT=-P5ZwpV2+0CA=0bwEMmacQeaMZg@mail.gmail.com>
Date: Thu, 27 Jun 2013 12:53:46 +0300
Message-ID: <CAA4aZexr183N2SeymOJ5me87gqFKPg0B4Zq7Y54qKPesEbW57w@mail.gmail.com>
From: D R <de3940@gmail.com>
To: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="089e01493b16fc060c04e01fbc0b"
Received-SPF: pass client-ip=209.85.215.65; envelope-from=de3940@gmail.com; helo=mail-la0-f65.google.com
X-W3C-Hub-Spam-Status: No, score=-0.5
X-W3C-Hub-Spam-Report: DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Us8u5-0008LF-4n eeeb14de389e28cc73c88dc9244933e0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-snell-httpbis-mget: Proposal for a new SHORTER format to header field :path
Archived-At: <http://www.w3.org/mid/CAA4aZexr183N2SeymOJ5me87gqFKPg0B4Zq7Y54qKPesEbW57w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18394
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I noticed I missed a slash at the example:  "/folder_c 6.jpg 7.jpg" should
have been "/folder_c/ 6.jpg 7.jpg"

Dvir


On Thu, Jun 27, 2013 at 12:46 PM, D R <de3940@gmail.com> wrote:

> Hi,
> Lets say, we want these resources:
> /folder_a/1.jpg
> /folder_a/2.jpg
> /folder_a/sub_folder_a/3.jpg
> /folder_a/sub_folder_a/4.jpg
> /folder_a/sub_folder_a2/8.jpg
> /folder_a/sub_folder_a2/9.jpg
> /folder_b/5.jpg
> /folder_c/6.jpg
> /folder_c/7.jpg
> so instead of writing this value at the ":path" header field:
> "/folder_a/1.jpg /folder_a/2.jpg /folder_a/sub_folder_a/3.jpg
> /folder_a/sub_folder_a/4.jpg /folder_a/sub_folder_a2/8.jpg
> /folder_a/sub_folder_a2/9.jpg /folder_b/5.jpg /folder_c/6.jpg
> /folder_c/7.jpg"
>
> we can use this shorter format for the header field:
> "/folder_a/ 1.jpg 2.jpg sub_folder_a/ 3.jpg 4.jpg ../sub_folder_a2/ 8.jpg
> 9.jpg /folder_b/5.jpg /folder_c 6.jpg 7.jpg"
>
> The idea behind the new format is to represent a directed forest (graph
> theory):
> - when a token begins with "/", than it represents a new directed tree in
> the forest.
> - when a token ends with "/", than it is a cut vertex of the current tree,
> and it is part of the path of the rest of the following vertexes of the
> current tree.
> - when a token doesn't end with a "/", than it is a leaf (a resource), and
> all the previous cut vertexes of the current tree, build it path.
> - when a token begins with this pattern "(?:../)+" with n repetitions,
> than when we build the path of the rest of the vertexes of the current
> tree, than we should go up in the directed tree n times.
>
> I hope my explanation is clear,
>
> Thanks,
> Dvir
>