Skip to content

Commit

Permalink
Expose request's body
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakahirano committed Jan 27, 2017
1 parent 826f6a8 commit 9aa9623
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4387,6 +4387,7 @@ typedef (Blob or BufferSource or FormData or URLSearchParams or ReadableStream o
<pre class=idl>[NoInterfaceObject,
Exposed=(Window,Worker)]
interface Body {
readonly attribute ReadableStream? body;
readonly attribute boolean bodyUsed;
[NewObject] Promise&lt;ArrayBuffer> arrayBuffer();
[NewObject] Promise&lt;Blob> blob();
Expand Down Expand Up @@ -4414,6 +4415,9 @@ non-null and its <a for=body>stream</a> is
non-null and its <a for=body>stream</a> is
<a for=ReadableStream>locked</a>.

<p>The <dfn attribute for=Body><code>body</code></dfn> attribute's getter must return null if
<a for=Body>body</a> is null and <a for=Body>body</a>'s <a for=body>stream</a> otherwise.

<p>The <dfn attribute for=Body><code>bodyUsed</code></dfn> attribute's getter must
return true if <a for=Body>disturbed</a>, and false otherwise.

Expand Down Expand Up @@ -5034,7 +5038,6 @@ interface Response {
readonly attribute boolean ok;
readonly attribute ByteString statusText;
[SameObject] readonly attribute Headers headers;
readonly attribute ReadableStream? body;
[SameObject] readonly attribute Promise&lt;Headers> trailer;

[NewObject] Response clone();
Expand Down Expand Up @@ -5215,10 +5218,6 @@ must return <a for=Response>response</a>'s
<p>The <dfn attribute for=Response><code>headers</code></dfn> attribute's getter must
return the associated {{Headers}} object.

<p>The <dfn attribute for=Response><code>body</code></dfn> attribute's getter must return null if
the associated <a for=Body>body</a> is null and the associated
<a for=Body>body</a>'s <a for=body>stream</a> otherwise.

<p>The <dfn attribute for=Response><code>trailer</code></dfn> attribute's getter must return the
associated <a for=Response>trailer promise</a>.

Expand Down

0 comments on commit 9aa9623

Please sign in to comment.