W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2014

Re: [whatwg] [Fetch] API changes to make stream depletion clearer/easier

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 22 Aug 2014 19:52:55 +0200
Message-ID: <CADnb78iuS5NVHao7YNjX0HP6QX+iAm_6oPOkdO-CmJJkWymqQA@mail.gmail.com>
To: Brian Kardell <bkardell@gmail.com>
Cc: James Graham <james@hoppipolla.co.uk>, WHATWG <whatwg@lists.whatwg.org>, Alex Russell <slightlyoff@google.com>, Jake Archibald <jaffathecake@gmail.com>
On Fri, Aug 22, 2014 at 7:15 PM, Brian Kardell <bkardell@gmail.com> wrote:
> I still think that calling it bodyStream actually helps understanding
> all you need and it's short/portable...
> response.bodyStream.asJSON()
> seems to at least give the hint that it is a stream that is consumed
> without getting too crazy.

Well 1),


is short too, much shorter in fact.

2) We have no idea what the design of what bodyStream's getter returns
is or should be.

3) As already indicated, after you use this once, you realize how it works.

4) I don't see how yours is more portable than James' proposal.

Received on Friday, 22 August 2014 17:53:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:22 UTC