Re: [whatwg/fetch] Initial resource timing integration. (#1185)

@noamr commented on this pull request.



> +  <li><p><a for=response>Update timing info</a> for <var>response</var>.
+  <li><p>Call <var>processBody</var> with <var>data</var>.
+ </ol>
+
+ <li><p>Let <var>processAndReportBodyError</var> be an action the performs the following steps:
+ <ol>
+  <li><p><a for=response>Update timing info</a> for <var>response</var>.
+  <li><p>Call <var>processBodyError</var>.
+ </ol>
+
+ <li><p>Perform the <a for=body>fully read</a> algorithm given <var>response</var>'s
+ <a for=response>body</a>, <var>taskDestination</var>, <var>processBodyChunk</var>,
+ <var>processAndReportBody</var>, and <var>processAndReportBodyError</var>.
+</ol>
+
+<p>To <dfn export lt="fully reading response as promise">fully read response body as promise</dfn>,

Perhaps we should, in addition to all this, export "update timing info" for `response`, and clients like XHR/fetch could call it directly rather than use the `response` wrappers. WDYT?

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

Received on Tuesday, 16 March 2021 11:52:58 UTC