Skip to content

Commit 3bd2cae

Browse files
authored
Expand on processResponseEndOfBody values
1 parent 5dc54a7 commit 3bd2cae

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

fetch.bs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7984,9 +7984,21 @@ in a <a for=/>parallel queue</a> if <a for=fetch><i>useParallelQueue</i></a> is
79847984
<p>Takes an algorithm that will be passed a <a for=/>response</a> and null, failure, or a
79857985
<a>byte sequence</a>. This is useful for standards that wish to operate on the entire
79867986
<a for=/>response</a>'s <a for=response>body</a>, of which the result of reading it is supplied as
7987-
second argument.
7987+
second argument. The second argument's values have the following meaning:
79887988

7989-
<p>It might be surprising that a <a for=/>network error</a> will have null as second argument.
7989+
<dl>
7990+
<dt>null
7991+
<dd>The <a for=/>response</a>'s <a for=response>body</a> is null, due to the response being a
7992+
<a for=/>network error</a> or having a <a>null body status</a>.
7993+
7994+
<dt>failure
7995+
<dd>Attempting to <a for=body>fully read</a> the contents of the <a for=/>response</a>'s
7996+
<a for=response>body</a> failed, e.g., due to an I/O error.
7997+
7998+
<dt>a <a>byte sequence</a>
7999+
<dd><a for=body>Fully reading</a> the contents of the <a for=/>response</a>'s
8000+
<a for=response>body</a> succeeded.
8001+
</dl>
79908002

79918003
<p class=warning>A standard that uses this argument cannot operate on <a for=/>response</a>'s
79928004
<a for=response>body</a> itself as providing this argument will cause it to be read and it can be

0 commit comments

Comments
 (0)