From 8bf54553c1d2c8609c75f25f5ce50a143454d63f Mon Sep 17 00:00:00 2001 From: Yutaka Hirano Date: Mon, 25 Jan 2016 14:31:27 +0900 Subject: [PATCH] Address review comments. --- Overview.html | 32 +++++++++++++++----------------- Overview.src.html | 30 ++++++++++++++---------------- 2 files changed, 29 insertions(+), 33 deletions(-) diff --git a/Overview.html b/Overview.html index 4b150ccf7..05bc52014 100644 --- a/Overview.html +++ b/Overview.html @@ -7,7 +7,7 @@

Fetch

-

Living Standard — Last Updated 21 January 2016

+

Living Standard — Last Updated 25 January 2016

Participate: @@ -251,7 +251,7 @@

3 Infrastructure


To wait for a response, if response's -body is not null, wait for response's +body is non-null, wait for response's body's stream to be closed or errored. @@ -516,10 +516,10 @@

3.1.4 Bodies

members as the ReadableStream object has today.

A body has an associated -transmitted (an integer). Unless stated it is 0. +transmitted (an integer). Unless stated otherwise it is 0.

A body has an associated -total bytes (an integer). Unless stated it is 0. +total bytes (an integer). Unless stated otherwise it is 0.

To clone a body body, run these steps: @@ -949,7 +949,7 @@

3.1.5 Requests

  • Let newRequest be a copy of request, except for its body. -

  • If request's body is not null, set +

  • If request's body is non-null, set newRequest's body to the result of cloning request's body. Rethrow any exceptions. @@ -1139,7 +1139,7 @@

    3.1.6 Responses

  • Let newResponse be a copy of response, except for its body. -

  • If response's body is not null, set +

  • If response's body is non-null, set newResponse's body to the result of cloning response's body. Rethrow any exceptions. @@ -1989,13 +1989,9 @@

    5.1 Main fetch

  • Queue a fetch task on request to process response for response. -

  • -

    Run these substeps in parallel: -

      -
    1. Wait for internalResponse. +

    2. Wait for internalResponse. -

    3. Queue a fetch-done task using request and response. -

    +
  • Queue a fetch-done task using request and response. @@ -2751,6 +2747,7 @@

    5.5 HTTP-network fetch

    Let strategy be an object. The user agent may choose any object. +

    strategy is used to control the queuing strategy of stream constructed below. @@ -2872,6 +2869,7 @@

    5.5 HTTP-network fetch

    Enqueue a Uint8Array object wrapping an ArrayBuffer containing bytes to stream. +

    This operation will not throw an exception.

  • If stream doesn't need more @@ -3602,12 +3600,12 @@

    6.2 Body mixin

    An object implementing the Body mixin is said to be disturbed if body is -not null and its stream is +non-null and its stream is disturbed.

    An object implementing the Body mixin is said to be -locked if body is not -null and its stream is +locked if body is +non-null and its stream is locked.

    The bodyUsed attribute's getter must @@ -3690,8 +3688,8 @@

    6.2 Body mixin

    TypeError.
  • Let stream be body's - stream if body is not - null, or an empty + stream if body is + non-null, or an empty ReadableStream object otherwise.

  • Let reader be the result of getting diff --git a/Overview.src.html b/Overview.src.html index b6c123933..e2239dd57 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -190,7 +190,7 @@

    Infrastructure


    To wait for a response, if response's -body is not null, wait for response's +body is non-null, wait for response's body's stream to be closed or errored. @@ -455,10 +455,10 @@

    Bodies

    members as the ReadableStream object has today.

    A body has an associated -transmitted (an integer). Unless stated it is 0. +transmitted (an integer). Unless stated otherwise it is 0.

    A body has an associated -total bytes (an integer). Unless stated it is 0. +total bytes (an integer). Unless stated otherwise it is 0.

    To clone a body body, run these steps: @@ -888,7 +888,7 @@

    Requests

  • Let newRequest be a copy of request, except for its body. -

  • If request's body is not null, set +

  • If request's body is non-null, set newRequest's body to the result of cloning request's body. Rethrow any exceptions. @@ -1078,7 +1078,7 @@

    Responses

  • Let newResponse be a copy of response, except for its body. -

  • If response's body is not null, set +

  • If response's body is non-null, set newResponse's body to the result of cloning response's body. Rethrow any exceptions. @@ -1928,13 +1928,9 @@

    Main fetch

  • Queue a fetch task on request to process response for response. -

  • -

    Run these substeps in parallel: -

      -
    1. Wait for internalResponse. +

    2. Wait for internalResponse. -

    3. Queue a fetch-done task using request and response. -

    +
  • Queue a fetch-done task using request and response. @@ -2690,6 +2686,7 @@

    HTTP-network fetch

  • Let strategy be an object. The user agent may choose any object. +

    strategy is used to control the queuing strategy of stream constructed below. @@ -2811,6 +2808,7 @@

    HTTP-network fetch

  • Enqueue a Uint8Array object wrapping an ArrayBuffer containing bytes to stream. +

    This operation will not throw an exception.

  • If stream doesn't need more @@ -3541,12 +3539,12 @@

    Body mixin

    An object implementing the Body mixin is said to be disturbed if body is -not null and its stream is +non-null and its stream is disturbed.

    An object implementing the Body mixin is said to be -locked if body is not -null and its stream is +locked if body is +non-null and its stream is locked.

    The bodyUsed attribute's getter must @@ -3629,8 +3627,8 @@

    Body mixin

    TypeError.
  • Let stream be body's - stream if body is not - null, or an empty + stream if body is + non-null, or an empty ReadableStream object otherwise.

  • Let reader be the result of getting