- From: Luca Casonato <notifications@github.com>
- Date: Thu, 10 Mar 2022 04:40:25 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 10 March 2022 12:40:37 UTC
@lucacasonato commented on this pull request.
> +<p>The
+<dfn constructor for=Response id=dom-response lt="Response(body, init)"><code>new Response(<var>body</var>, <var>init</var>)</code></dfn>
+constructor steps are:
+
+<ol>
+ <li><p>Set <a>this</a>'s <a for=Response>response</a> to a new <a for=/>response</a>.
+
+ <li><p>Set <a>this</a>'s <a for=Response>headers</a> to a <a for=/>new</a> {{Headers}} object with
+ <a>this</a>'s <a>relevant Realm</a>, whose <a for=Headers>header list</a> is <a>this</a>'s
+ <a for=Response>response</a>'s <a for=response>header list</a> and <a for=Headers>guard</a> is
+ "<code>response</code>".
+
+ <li><p>Let <var>bodyWithType</var> be null.
+
+ <li><p>If <var>body</var> is non-null, then let <var>bodyWithType</var> be the result of
+ <a for=BodyInit>extracting</a> <var>body</var>.
https://github.com/whatwg/fetch/issues/1410
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1392#discussion_r823675919
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/pull/1392/review/905772975@github.com>
Received on Thursday, 10 March 2022 12:40:37 UTC