Re: Byte range PATCH

Austin William Wright <aaa@bzfx.net> Tue, 09 August 2022 05:52 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 7D68BC14F739 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 8 Aug 2022 22:52:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.759
X-Spam-Level:
X-Spam-Status: No, score=-2.759 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=bzfx.net
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 njEOcvMu8zOj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 8 Aug 2022 22:52:40 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 96D4DC14F613 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 8 Aug 2022 22:52:40 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oLIAG-00Fdwc-Tm for ietf-http-wg-dist@listhub.w3.org; Tue, 09 Aug 2022 05:52:28 +0000
Resent-Date: Tue, 09 Aug 2022 05:52:28 +0000
Resent-Message-Id: <E1oLIAG-00Fdwc-Tm@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <aaa@bzfx.net>) id 1oLIAF-00Fdve-5l for ietf-http-wg@listhub.w3.org; Tue, 09 Aug 2022 05:52:27 +0000
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <aaa@bzfx.net>) id 1oLIAD-00Cuml-Qx for ietf-http-wg@w3.org; Tue, 09 Aug 2022 05:52:26 +0000
Received: by mail-pl1-x630.google.com with SMTP id 17so10437342plj.10 for <ietf-http-wg@w3.org>; Mon, 08 Aug 2022 22:52:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bzfx.net; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=zJKmxPP67ZFG8AVzJZMjSozDm77dqLUzsv5fiIohxjg=; b=P4xWOpw69pNdWVWDDr1mkmys0Rs0KxgGiv44FDgYeVFpIRYjqdouXbFZvjVfqYgJmM HIU+DV/3JO7yLo8MlIjhkY9E7XyCHnR2UGSSEa6NMwvDaEKUWskE1EITWdggSokfrMug JRrQ3/5nxwK0viHbOxsZkpTC6ZOyvAfiH/irU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=zJKmxPP67ZFG8AVzJZMjSozDm77dqLUzsv5fiIohxjg=; b=PlmD0L/TrjVbTSpu+KMHSj6SyL+tTBu6aLimkIsl58P3P5taWDDfvDH9Q6IQdFdThw iXPfJnVtb55E0BucW4bUU6f7r3OcRc4KrjxbPU0f+bDIyxvFsTMXWeMizaEVzx7ETZvt y9zWleeE6spvHnVCJe3AzU/u29re037cJaP/Gz0gEGofzrKvnQnwTvQIjXWxmxaelpIq kfOt00oZ6INrZWoVbZqIImi9NgRC2fpEQYgTUj6c5/ijsPpAtXabVVvy2asuACfw+eoy yI72n+8A2C2X27/MA1D+EjSNv+Evwi/oXh0I4hM9hpZXOii78XQa0660PFYmifrizjSj G5iQ==
X-Gm-Message-State: ACgBeo1fRpAkpOBGmnimNCUEefkxG08dMstnLFtD3MrPiZOQcQZzZ4zY FXvw5SEqx2MpUgbjQe9/25i4OA==
X-Google-Smtp-Source: AA6agR7nGLtcq846TXzNjjtihIGbYhS9DGohrE0UcEMx+PIvL7JZTE6KxWylevrVO2WZTzKcKEOc/g==
X-Received: by 2002:a17:902:e884:b0:170:2845:986a with SMTP id w4-20020a170902e88400b001702845986amr15830836plg.43.1660024334804; Mon, 08 Aug 2022 22:52:14 -0700 (PDT)
Received: from smtpclient.apple (71-223-183-211.phnx.qwest.net. [71.223.183.211]) by smtp.gmail.com with ESMTPSA id x8-20020aa79ac8000000b0052efc57c48dsm5984725pfp.104.2022.08.08.22.52.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2022 22:52:13 -0700 (PDT)
From: Austin William Wright <aaa@bzfx.net>
Message-Id: <672DEEA3-1BE4-43C2-B3D4-B5F7A6369EED@bzfx.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9D1CD8C8-34AE-4704-8B7E-F773E39FE16F"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
Date: Mon, 08 Aug 2022 22:52:11 -0700
In-Reply-To: <62837B15-2BDB-49EA-B70E-F64B012B94B5@apple.com>
Cc: ietf-http-wg@w3.org
To: Guoye Zhang <guoye_zhang@apple.com>
References: <E511F4BD-B422-46DA-8409-EBBD684098A6@bzfx.net> <3A341B75-7088-4B8F-96CC-AB25CAC7D842@apple.com> <20CD5B65-BF7E-4628-B36A-B2DEFFEF4CBE@bzfx.net> <62837B15-2BDB-49EA-B70E-F64B012B94B5@apple.com>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=aaa@bzfx.net; helo=mail-pl1-x630.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=aaa@bzfx.net domain=bzfx.net), signature is good
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1oLIAD-00Cuml-Qx df52c535530304faf39d8e056306d274
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Byte range PATCH
Archived-At: <https://www.w3.org/mid/672DEEA3-1BE4-43C2-B3D4-B5F7A6369EED@bzfx.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40318
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 Aug 5, 2022, at 19:53, Guoye Zhang <guoye_zhang@apple.com> wrote:
> 
> 
> Thinking about this more, there is a problem with using Content-Range for this as well. End offset is inclusive, so in order to insert / append, we need to decrease it by one.

You may still be on to something. Personally, I would expect the syntax:

Content-Range: bytes 0/100 (prepend at beginning)

Content-Range: bytes 100/100 (append at end)

But, as before with an indefinite-length response (an indeterminate length response that goes on forever), this may require a new field name, if revising Content-Range is implausible. e.g. "Content-At"

Thanks,

Austin.