On Tue, Aug 12, 2014 at 7:22 PM, Brian Kardell <bkard...@gmail.com> wrote:
> If I do
> console. log(o.responseText);
> console. log(o.responseText);
> The second one will be what?  The response text or nada? Isn't the later
> more analogous to what we're taking about here when it's a stream?  It feels
> like it's reaching for consistency but could explain how it works either
> way..

That we store it on XMLHttpRequest is somewhat buggy, but that you can
only get either JSON or a string is in the right direction and what I
meant. Now we have promises we no longer need to store a copy on an
object, but can just return the value.

If you do asText() we could store the result on the Response object so
it would work for multiple invocations, but that seems silly.


Reply via email to