Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Response.json static method #1392

Merged
merged 16 commits into from
May 18, 2022
3 changes: 1 addition & 2 deletions fetch.bs
Expand Up @@ -7515,8 +7515,7 @@ are:
<var>init</var>["{{ResponseInit/headers}}"].

<li><p>Set <var>responseObject</var>'s <a for=Response>response</a>'s <a for=response>body</a> to
the <a>UTF-8 encoding</a> of the result of running
<a>serialize a JavaScript value to a JSON string</a> on <var>data</var>.
the result of running <a>serialize a JavaScript value to a JSON bytes</a> on <var>data</var>.

<li><p>If <var>responseObject</var>'s <a for=Response>response</a>'s <a for=response>header list</a>
<a for="header list">does not contain</a> `<code>Content-Type</code>`, then
Expand Down