- From: fergald <notifications@github.com>
- Date: Thu, 15 Jun 2023 21:23:41 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 June 2023 04:23:46 UTC
@fergald commented on this pull request.
> @@ -8449,6 +8597,60 @@ with a <var>promise</var>, <var>request</var>, <var>responseObject</var>, and an
</div>
+<h3 id=fetch-later-method>FetchLater method</h3>
+
+<pre class=idl>
+
+dictionary DeferredRequestInit : RequestInit {
+ DOMHighResTimeStamp backgroundTimeout;
+};
+
+partial interface mixin WindowOrWorkerGlobalScope {
+ [NewObject] Promise<Response> fetchLater(RequestInfo input, optional DeferredRequestInit init = {});
@annev
> I think we should match optional arguments where the boolean is always supposed to default to false.
I agree with this as a principle however I think we're talking about a field in a returned struct, not an optional argument. It's an initial value not a default value. So we don't need to favour `false`.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1647#discussion_r1231760358
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/pull/1647/review/1482695149@github.com>
Received on Friday, 16 June 2023 04:23:46 UTC