Design Issue: GZIP flag on DATA Frames

James M Snell <jasnell@gmail.com> Tue, 21 May 2013 16:23 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 8375721F9747 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 09:23:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.146
X-Spam-Level:
X-Spam-Status: No, score=-9.146 tagged_above=-999 required=5 tests=[AWL=1.453, BAYES_00=-2.599, 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 KDbJh2S5MTwC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 09:23:06 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3A20B21F98AF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 May 2013 09:23:06 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UepKX-0001t5-6t for ietf-http-wg-dist@listhub.w3.org; Tue, 21 May 2013 16:22:29 +0000
Resent-Date: Tue, 21 May 2013 16:22:29 +0000
Resent-Message-Id: <E1UepKX-0001t5-6t@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UepKM-0001sL-9A for ietf-http-wg@listhub.w3.org; Tue, 21 May 2013 16:22:18 +0000
Received: from mail-oa0-f53.google.com ([209.85.219.53]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UepKH-0005P7-Pn for ietf-http-wg@w3.org; Tue, 21 May 2013 16:22:18 +0000
Received: by mail-oa0-f53.google.com with SMTP id g12so1051788oah.40 for <ietf-http-wg@w3.org>; Tue, 21 May 2013 09:21:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=xjNapSotK36B/n59BcQv9sdKHo0WoepS9YlCZcVuXQk=; b=bvTvNN1A7xoYdEn6RsAYRRNtpAow6qB6pAFaeeqAOBgu222TTNpZ56fboQ2YzuYVxq pfOMEUrsxyQtRbTbX1JtvE8Six1S03NFB8Ho4BJ0FFLMHKEIxPYpgboa3ftcZ5n3sIcg fKM7+Pfsbl9UdkLLd0Bw8Xf4w4675FuLyMfK2QTZTmMa4RC/y94zbKuqDoOTvMv+1wJH be3XaOcnOsLqYqluKGyYKcEvAmUYSH2E/LcmLKUJg7NX6TT0aXX+NbIl/UtJbkYCuoPs ewXc5Fh0YB6QvdXLF5yvCoIIHpvMBolcl4MD2i1BMXaxKXxEoNHeU/oZyNZE940gn3Xs IPwA==
X-Received: by 10.182.227.133 with SMTP id sa5mr1874936obc.96.1369153307986; Tue, 21 May 2013 09:21:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Tue, 21 May 2013 09:21:27 -0700 (PDT)
From: James M Snell <jasnell@gmail.com>
Date: Tue, 21 May 2013 09:21:27 -0700
Message-ID: <CABP7Rbfb92Vxrmxj6fKdt+jpO_Qknq8FRjsu5GZW=17uoi4OFg@mail.gmail.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.219.53; envelope-from=jasnell@gmail.com; helo=mail-oa0-f53.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.687, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UepKH-0005P7-Pn d74f10f45ceac921012e52185b16b59a
X-Original-To: ietf-http-wg@w3.org
Subject: Design Issue: GZIP flag on DATA Frames
Archived-At: <http://www.w3.org/mid/CABP7Rbfb92Vxrmxj6fKdt+jpO_Qknq8FRjsu5GZW=17uoi4OFg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18051
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>

https://github.com/http2/http2-spec/issues/100

Currently the spec includes a requirement that all user-agents MUST
support gzip.. specifically:

  User-agents MUST support gzip compression.
  Regardless of the Accept-Encoding sent by
  the user-agent, the server may always send
  content encoded with gzip or deflate encoding.

If we're going to include this requirement, it makes more sense to do
this at the framing layer rather than the HTTP semantic layer. We can
do so easily by defining a GZIP flag on the DATA frame type. If set,
the payload of the DATA frame is compressed.

Doing so largely eliminates the need for the
accept-/transfer-/content-encoding mechanisms at the http semantic
layer.