Re: draft-ietf-httpbis-http2-latest, 8.1.2.1 Request Header Fields | Re: draft-ietf-httpbis-http2-latest, 5.5 Extending HTTP/2

Yutaka Hirano <yhirano@google.com> Thu, 17 July 2014 01:42 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 07CC81A03F9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Jul 2014 18:42:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.03
X-Spam-Level:
X-Spam-Status: No, score=-7.03 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y8tEJFWPhFPP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Jul 2014 18:42:37 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2825E1A03F4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 16 Jul 2014 18:42:36 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1X7afE-0002kL-54 for ietf-http-wg-dist@listhub.w3.org; Thu, 17 Jul 2014 01:39:16 +0000
Resent-Date: Thu, 17 Jul 2014 01:39:16 +0000
Resent-Message-Id: <E1X7afE-0002kL-54@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <yhirano@google.com>) id 1X7af1-0002jX-Kx for ietf-http-wg@listhub.w3.org; Thu, 17 Jul 2014 01:39:03 +0000
Received: from mail-qc0-f180.google.com ([209.85.216.180]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <yhirano@google.com>) id 1X7af0-0006mA-NR for ietf-http-wg@w3.org; Thu, 17 Jul 2014 01:39:03 +0000
Received: by mail-qc0-f180.google.com with SMTP id l6so1524526qcy.39 for <ietf-http-wg@w3.org>; Wed, 16 Jul 2014 18:38:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QAOp7HMjU1+6I3+NJjXzk4UJZ8BeqFJIZeLD9f7gjpI=; b=otvp82b9JlBYubrampPXz/7h5DGyf5tMghEevec24QOsdaDcVkKQNza3BTHQ1JsfvB O3a1CsnXGLAO0ApZprSINdKvMnl1KFwGRcyff8BlUzGSKTHVpySeQOU5eFx7uBf8D20d eQ0yq0eyCdecKoVdd0POAZhqVmBP4WjXP53WP/tA2+nd016jqQcg6LIQ78OCIlUTCu7F CRtOo0EGW2EpKMKJVXCALCFTfccDIAHbBAWe/FumQQ4IDpqG/RozA7cSeCm887wcAFaM obUwEmRdcSh+Bx/VbHqPZep1vG3AQ4g4X0ivRteLE8Q6fjHzTyau8oyYPWY7Q3dnQHrP 4qKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QAOp7HMjU1+6I3+NJjXzk4UJZ8BeqFJIZeLD9f7gjpI=; b=bibx5U321I55Em00wGmlpNfVZfYJ4YEcyAbWHMRtDWCRBSXIKJm5dP/Hvxe/Vc8I6M l5Za4ErqEE9tobKvYM6+pHjr9QuVZVCrqrkgSXDSsQXlE2fe1qMXpcXFGEpgWGjkBR3y C898aOGVuwN4dXCm37wqWqMMAhsicXlyJz+N5SFXdsjFGXjo/LQ3gGt1up921Q/G7NRx jv3oRYD6vz6h/4Azf045RcP2BgJdFs9lVnJU831A8ea/GEiQBH/T2LKKQ2mW0DEba7hH OsHSHYLvAB8C27Kn2p4jgAoXFK6zd+OT+Q6aWOjJjGloIBqgdmjBSw08p/GTCmUzvTta m42g==
X-Gm-Message-State: ALoCoQntKe1A9aT6uwFvEDhPPnQCzYOH75O3/YAx+VpixrehWqFcTkoJPVUYZFuS0fT6dbHkYAMr
MIME-Version: 1.0
X-Received: by 10.224.13.4 with SMTP id z4mr51140603qaz.51.1405561116894; Wed, 16 Jul 2014 18:38:36 -0700 (PDT)
Received: by 10.140.44.34 with HTTP; Wed, 16 Jul 2014 18:38:36 -0700 (PDT)
In-Reply-To: <CABkgnnXFW05Kp_nh45bxQ9cqG05J-C_oeRJkwO4iiEsoGiZxpg@mail.gmail.com>
References: <20140711154501.871745BC004@smtp5.welho.com> <CABkgnnXS4BVYMq43pKczzmRfNeLEaCNt6rprsX6eecU2whvhzA@mail.gmail.com> <CABihn6HpJPwKMjhtSkhZNM6CFsaQxrfmj286H65j8p0jWTAkRw@mail.gmail.com> <201407140442.s6E4gJbN028792@shell.siilo.fmi.fi> <201407142009.s6EK9OBE024561@shell.siilo.fmi.fi> <CABkgnnX3R8Vx8o9yHN=J6FsQZEGEUcJxA-Nv_iUOXX8b0Q47OA@mail.gmail.com> <201407150552.s6F5qBtY010352@shell.siilo.fmi.fi> <CABkgnnWg39_d6xj8vyX1q4TP3-J+uxYyjScK8h+V_=wDBnbGAg@mail.gmail.com> <201407160600.s6G60DCQ022972@shell.siilo.fmi.fi> <201407160633.s6G6XxMa024007@shell.siilo.fmi.fi> <CABkgnnXFW05Kp_nh45bxQ9cqG05J-C_oeRJkwO4iiEsoGiZxpg@mail.gmail.com>
Date: Thu, 17 Jul 2014 10:38:36 +0900
Message-ID: <CABihn6Hn-drA823xq3XKrkeDpisR97mKqD6vcXrLAvpUXMsMAA@mail.gmail.com>
From: Yutaka Hirano <yhirano@google.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTPBIS working group mailing list <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e0149ccd815405904fe59b3d9"
Received-SPF: pass client-ip=209.85.216.180; envelope-from=yhirano@google.com; helo=mail-qc0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-2.498, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1X7af0-0006mA-NR 1d2e4cbaf29a30b3d1630621a8372928
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-http2-latest, 8.1.2.1 Request Header Fields | Re: draft-ietf-httpbis-http2-latest, 5.5 Extending HTTP/2
Archived-At: <http://www.w3.org/mid/CABihn6Hn-drA823xq3XKrkeDpisR97mKqD6vcXrLAvpUXMsMAA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26004
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 see.
Currently I would like to use SETTINGS frames to confirm the WS-over-HTTP/2
capability of a communication channel, like this.

An endpoint sends a SETTINGS frame with WS_CAPABLE once a HTTP/2 connection
is created.
An endpoint knows that an HTTP/2 connection is capable of WS_OVER_HTTP/2 if
it receives a SETTINGS frame with WS_CAPABLE.
A client knows that an HTTP/2 connection isn't capable of WS_OVER_HTTP/2 if
it receives a Websocket handshake response before receiving a SETTINGS
frame with WS_CAPABLE.
A server knows that an HTTP/2 connection isn't capable of WS_OVER_HTTP/2 if
it receives a Websocket handshake request before receiving a SETTINGS frame
with WS_CAPABLE.

Martin, does that look correct to you?

Thanks,



On Thu, Jul 17, 2014 at 2:08 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 15 July 2014 23:33, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> > Should this
> >         "other than those defined in this document"
> >
> > to be
> >         "other than those defined in this document or extensions
> (Section 5.5)"
>
> We decided to forbid the use of colon-headers in extensions.
>
> > In other hand I think that this whole text
> >
> > » Header field names that start with a colon are only valid in the
> HTTP/2 context. These are not
> > » HTTP header fields. Endpoints MUST NOT generate header fields that
> start with a colon other
> > » than those defined in this document [or extensions (Section 5.5)]
> >
> > belong to
> >
> > 8.1.2 HTTP Header Fields
>
> Let's see:
> https://github.com/http2/http2-spec/commit/cf1677cbc2b8f501204de18ecfe6ff4be623b9ba
>