Re: [whatwg/fetch] Deferred fetching (PR #1647)

@mingyc commented on this pull request.



> +
+ <li><p>Let <var>remainingQuotaForOrigin</var> be 64 kibibytes.
+
+ <li>
+  <p><a for=list>For each</a> <var>navigable</var> in
+  <var>directRelativeSameOriginNavigables</var>:
+
+  <ol>
+   <li>
+    <p><a for=list>For each</a> <a>deferred fetch record</a> <var>deferredRecord</var> in
+    <var>navigable</var>'s <a>active document</a>'s <a for=fetch>fetch group</a>'s
+    <a for="fetch group">deferred fetch records</a>:</p>
+
+    <ol>
+     <li><p>Let <var>length</var> be <var>deferredRecord</var>'s
+     <a for="deferred fetch record">request</a>'s <a for=request>body</a>'s

> Let length be deferredRecord’s [request](https://whatpr.org/fetch/1647.html#deferred-fetch-record-request)’s [body](https://whatpr.org/fetch/1647.html#concept-request-body)’s [length](https://whatpr.org/fetch/1647.html#concept-body-total-bytes).

This step should also be updated to count URL and header's sizes (the following steps)?

> Let totalRequestLength be the [length](https://infra.spec.whatwg.org/#string-length) of request’s [URL](https://whatpr.org/fetch/1647.html#concept-request-url), [serialized](https://url.spec.whatwg.org/#concept-url-serializer) with [exclude fragment](https://url.spec.whatwg.org/#url-serializer-exclude-fragment) set to true.

> [For each](https://infra.spec.whatwg.org/#list-iterate) (name, value) in [header list](https://whatpr.org/fetch/1647.html#concept-request-header-list), increment totalRequestLength by name’s [length](https://infra.spec.whatwg.org/#byte-sequence-length) + value’s [length](https://infra.spec.whatwg.org/#byte-sequence-length).

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

Message ID: <whatwg/fetch/pull/1647/review/2098148699@github.com>

Received on Wednesday, 5 June 2024 06:28:16 UTC