Re: WiSH: A General Purpose Message Framing over Byte-Stream Oriented Wire Protocols (HTTP)

Takeshi Yoshino <tyoshino@google.com> Fri, 28 October 2016 09:05 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 9B9FA12989B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Oct 2016 02:05:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.951
X-Spam-Level:
X-Spam-Status: No, score=-6.951 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.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 3Cb3n83hoyy8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Oct 2016 02:05:02 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D13A12971B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 28 Oct 2016 02:05:01 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c031Z-0003it-MD for ietf-http-wg-dist@listhub.w3.org; Fri, 28 Oct 2016 09:00:29 +0000
Resent-Date: Fri, 28 Oct 2016 09:00:29 +0000
Resent-Message-Id: <E1c031Z-0003it-MD@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tyoshino@google.com>) id 1c031U-0003hp-3q for ietf-http-wg@listhub.w3.org; Fri, 28 Oct 2016 09:00:24 +0000
Received: from mail-oi0-f44.google.com ([209.85.218.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tyoshino@google.com>) id 1c031O-0005YU-2T for ietf-http-wg@w3.org; Fri, 28 Oct 2016 09:00:18 +0000
Received: by mail-oi0-f44.google.com with SMTP id n202so102104364oig.3 for <ietf-http-wg@w3.org>; Fri, 28 Oct 2016 01:59:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jE3gc4SR/GWf2yl89vY+QglEaf+8RKHMDNzDywvnBy4=; b=I7M7bBDzis5q2cfF0y857uda8I74iGzeGwV/j4ZB/30HsMsDl2un5nvmrkW/916SwO xzzGRzIz0DI+OWG12unYi8HDctNw9YEuV/lZ0OjA+kdE4r+wZYG92DFaV7IRbyqxGuK6 36tRWtA66kclJ7cxvfhNqs+8s5y92KweW2rTmYFcvbdIAh4+V9eRy0FVuodHPc18UGEC wQwE2M+XHwvcPwc18vrCIZjcogrp2/MnTfd5raAnG/gDiXCG1n9azYsHiCJUNGlsAbWH qpaqH4wEZeYYbM0vxgqGtHH2q0QSOOaMYnFiVVFgh3TMP5z10R0LP3OtIeO6lHHP/rYd /jZA==
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:from:date :message-id:subject:to:cc; bh=jE3gc4SR/GWf2yl89vY+QglEaf+8RKHMDNzDywvnBy4=; b=lPch5jmRVKedj6xILyX0qSZ+tLO6KUK3fMtwcTAoph19utKBx84U6L95sjFxv1Y5D+ jMlSte5OSXDUeGrG5gpedNRT9Sj+JDJRNV3PsUuUZqqtJzJMXCwc6ezenfhS8QklJuCq b2m6kJN/RC/7Bxs5c0/Km9sgRpb9gYyq9h2yY79gsAu+RBipWM4iR0COK9jDYfeGdvAx mNyiy7fztzSZP28JULET0l/wZDUfvSuhh0OrY2Bg+YTjt9uvVpg0dcbD6oAZrA7Wg5aZ kaMXgg43+tk271NNh2TqGzkY4QlPG1ikU1uZtAl+StNkYLOdUWroxOntj/0+bHQ90ldO U4Gg==
X-Gm-Message-State: ABUngvdaWsFBLb/hltiHJ6ioYx+cS6YkTrcH2Ns8Vma7fhFiyS1vugkzlVwVZ65FRB6bSJWGSmgW/BR7BJ3giGAC
X-Received: by 10.107.25.20 with SMTP id 20mr9786369ioz.189.1477645191481; Fri, 28 Oct 2016 01:59:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.113.68 with HTTP; Fri, 28 Oct 2016 01:59:30 -0700 (PDT)
In-Reply-To: <CAD3-0rPRPzVvYb6_Z4wDZp73L5Kyb7LmE0P5j4A-2VSRwT7FMw@mail.gmail.com>
References: <CAH9hSJZdBJ02+Z6o=aanZ=5PN=9VwyL1ZcX2jct-6f_FFivLGA@mail.gmail.com> <0f79ddf6-c455-c41a-f269-a1bdcef05b14@ninenines.eu> <CAH9hSJb2R9gv2vNqoyTjbMV4hZTYdpX2PoAoYgWUT1UuigLHRA@mail.gmail.com> <5541be74-afcc-6aef-404e-63acb2f608eb@ninenines.eu> <CAH9hSJarsNFqX1tAL7BZmZQwUrEQs1X3wtrAPuMyz8s-k_7WRg@mail.gmail.com> <43998e7b-9227-7562-b2c6-c08134065e22@ninenines.eu> <CAD3-0rPRPzVvYb6_Z4wDZp73L5Kyb7LmE0P5j4A-2VSRwT7FMw@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Fri, 28 Oct 2016 17:59:30 +0900
Message-ID: <CAH9hSJb=mWdHP8xcBis8-jhWgQTfN-cgQXVV3eCyT4U8JYQHZA@mail.gmail.com>
To: Wenbo Zhu <wenboz@google.com>
Cc: =?UTF-8?B?TG/Dr2MgSG9ndWlu?= <essen@ninenines.eu>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a113ffa22be83bc053fe91429
Received-SPF: pass client-ip=209.85.218.44; envelope-from=tyoshino@google.com; helo=mail-oi0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=0.484, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-1.418, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c031O-0005YU-2T 5d12bef30b88c29fbec115a2e2b534f4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WiSH: A General Purpose Message Framing over Byte-Stream Oriented Wire Protocols (HTTP)
Archived-At: <http://www.w3.org/mid/CAH9hSJb=mWdHP8xcBis8-jhWgQTfN-cgQXVV3eCyT4U8JYQHZA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32698
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>

On Fri, Oct 28, 2016 at 10:13 AM, Wenbo Zhu <wenboz@google.com> wrote:

>
>
> On Tue, Oct 25, 2016 at 2:08 AM, Loïc Hoguin <essen@ninenines.eu> wrote:
>
>> On 10/25/2016 11:54 AM, Takeshi Yoshino wrote:
>>
>>> <snip>
>>> Oh, sorry for being unclear. I meant that we'll use
>>> "application/subprotocol+webstream". I.e. introducing +webstream as a
>>> new media type suffix.
>>>
>>
>> Ah!
>>
>> OK I have no problem with that.
>>
>
> is it true only registered suffixes are allowed, e.g. json, xml etc?
>

Did you mean the prefix?


>
> application/webstream; protocol=...  seems more legit and most
> subprotocols are not registered media types either..
>
>
I skimmed RFC 6838. I think application/xxx+suffix would be subject to the
same rule for general rule for media types even if +suffix is registered.

We can choose to put the protocol parameter under control of IANA, but yes,
we'll have options to decide whether we make it so or not.


> Re: the actual parameter "protocol", we may want to mention it similar to
> utf-8 checking, as a future concern for providing websocket compatibility.
>
>
I'm adding a section about that. For WebSocket compatibility, its value
should follow the token ABNF.


>
>
>
>>
>> <snip>
>>>     * By the way, don't know if consistency is desirable, by maybe
>>>     calling it application/web-stream is better. Maybe not.
>>>
>>>
>>> Could you please elaborate the proposal?
>>>
>>
>> I mean there's already text/event-stream, so application/webstream is not
>> consistent with it (missing the dash). But maybe it doesn't matter.
>>
>>     * The HEAD method behaves as usual. The PUT method is probably not
>>>     compatible with doing this. PATCH and DELETE are not compatible
>>> AFAIK.
>>>
>>>
>>> I'm feeling that we should just limit the scope of the proposal to GET
>>> and POST.
>>>
>>
>> Sounds good to me.
>>
>> Thanks for the great work! I look forward to implementing this.
>>
>>
>> --
>> Loïc Hoguin
>> https://ninenines.eu
>>
>
>