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

Wenbo Zhu <wenboz@google.com> Fri, 28 October 2016 01:17 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 A69AF129530 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 18:17:52 -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 1WU1rvfNeUJa for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 27 Oct 2016 18:17:51 -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 2B7EB1294D2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 27 Oct 2016 18:17:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bzvjo-0006sx-Eb for ietf-http-wg-dist@listhub.w3.org; Fri, 28 Oct 2016 01:13:40 +0000
Resent-Date: Fri, 28 Oct 2016 01:13:40 +0000
Resent-Message-Id: <E1bzvjo-0006sx-Eb@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 <wenboz@google.com>) id 1bzvjj-0006rp-Hu for ietf-http-wg@listhub.w3.org; Fri, 28 Oct 2016 01:13:35 +0000
Received: from mail-oi0-f43.google.com ([209.85.218.43]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <wenboz@google.com>) id 1bzvjd-00026B-HX for ietf-http-wg@w3.org; Fri, 28 Oct 2016 01:13:30 +0000
Received: by mail-oi0-f43.google.com with SMTP id n202so81281939oig.3 for <ietf-http-wg@w3.org>; Thu, 27 Oct 2016 18:13:09 -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=1dFMRWdcp/X6VEgOY0WD9Y8eZVcNkbtzFBGkykJ35r8=; b=DzwfQGcF1hcH+3iLNvc5SgQm5Wwv5VcA4WuA2LTBqnw5WEt2Zqvxw/toPnjFmK1m36 NsBNXZoonYiF5ZHGN8N80v/gtkqklft6SH4dCeocLfBmc0TLS5xlv0j7rUkKd5Tnmqjp Olfa8NPgRkf7AWm22ofQrArmf/QOGtu1nLN564Jazxtm3OpzC+azaTG9bfbupCeiwGZc ksn1hfsYcVMZ+3RIt1cuGj28aqJp1MO6ano/MzTg2SElzLLuXMAMG/wwc0S+omfekzyg 8GfOmidqrQIVqIhAHMFG/NGq0Xzk5tmGe28Xte9Slkfq8f1oiGTXu83XXkSX3SfcpD21 J1qQ==
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=1dFMRWdcp/X6VEgOY0WD9Y8eZVcNkbtzFBGkykJ35r8=; b=YwEuk/xa7D/UwX++j+XtFh0Du5WZu5NV5ntPjnRO9nIMzXjG8JNii3g2mAwZD7SFnz Ry72r3dG+ZYsuI2PDqpp7qZcc27dPzVIVuQKJ+P2SQaP/DTfVi5eLBF23gSkLS4VLRqL ysdlzXDqcTDfpvYkzQF2Roncwk4bA/GbP3bxzhZUjLnuSueskjFYwatY/UzqBb/avf// fEtqIY2MOleBUrNRrxbkcoKJewXeh0iPGSNJnXVbtmz3SLNftnbF9Sxw7mqeCEI3gzo7 zQj641elM7nGucVkBgezn9b2kMkU56kHjRQfBjv4m/52cZ7NAFumCoq1d3Ti65hwRa/I 3q+w==
X-Gm-Message-State: ABUngvf/zZkBubXxvwR6lPzTtQ398nWNMNqeWylZ751HTNrhx/U2e1y1a0J2QfocZPWVsFEabaCwEMKB7kzlOrI2
X-Received: by 10.36.107.72 with SMTP id v69mr88501itc.37.1477617182955; Thu, 27 Oct 2016 18:13:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.19.244 with HTTP; Thu, 27 Oct 2016 18:13:02 -0700 (PDT)
In-Reply-To: <43998e7b-9227-7562-b2c6-c08134065e22@ninenines.eu>
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>
From: Wenbo Zhu <wenboz@google.com>
Date: Thu, 27 Oct 2016 18:13:02 -0700
Message-ID: <CAD3-0rPRPzVvYb6_Z4wDZp73L5Kyb7LmE0P5j4A-2VSRwT7FMw@mail.gmail.com>
To: =?UTF-8?B?TG/Dr2MgSG9ndWlu?= <essen@ninenines.eu>
Cc: Takeshi Yoshino <tyoshino@google.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114a9d724e28e3053fe28f64
Received-SPF: pass client-ip=209.85.218.43; envelope-from=wenboz@google.com; helo=mail-oi0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: AWL=0.326, 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.411, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1bzvjd-00026B-HX 35bb4da2b3eb1268931e257ac6189d64
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/CAD3-0rPRPzVvYb6_Z4wDZp73L5Kyb7LmE0P5j4A-2VSRwT7FMw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32695
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 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?

application/webstream; protocol=...  seems more legit and most subprotocols
are not registered media types either..

Re: the actual parameter "protocol", we may want to mention it similar to
utf-8 checking, as a future concern for providing websocket compatibility.




>
> <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
>