Re: [whatwg/fetch] Add `Response.json` static method (PR #1392)

@lucacasonato commented on this pull request.



> @@ -7480,6 +7485,48 @@ are:
  <li><p>Return <var>responseObject</var>.
 </ol>
 
+
+<p>The static
+<dfn method for=Response><code>json(<var>data</var>, <var>init</var>)</code></dfn> method steps

Ok, rewrote this so the shared steps are extracted into a common "initialize a response" algorithm.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1392#discussion_r805056935
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1392/review/880753459@github.com>

Received on Friday, 11 February 2022 22:53:27 UTC