Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose initiatorType and destination on network.Request #809

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5829,6 +5829,8 @@ network.RequestData = {
cookies: [*network.Cookie],
headersSize: js-uint,
bodySize: js-uint / null,
destination: text,
initiatorType: text,
jgraham marked this conversation as resolved.
Show resolved Hide resolved
timings: network.FetchTimingInfo,
};
</pre>
Expand Down Expand Up @@ -5879,15 +5881,20 @@ To <dfn>get the request data</dfn> given |request|:

1. Append the result of [=serialize cookie=] given |cookie| to |cookies|.

1. Let |destination| be |request|'s [=request/destination=].

1. Let |initiator type| be |request|'s [=request/initiator type=].

1. Let |timings| be [=get the fetch timings=] with |request|.

1. Return a map matching the <code>network.RequestData</code> production, with
the <code>request</code> field set to |request id|, <code>url</code> field
set to |url|, the <code>method</code> field set to |method|, the
<code>headers</code> field set to |headers|, the |cookies| field set to
|cookies|, and the <code>headersSize</code> field set to |headers size|,
the <code>bodySize</code> field set to |body size|, and the
<code>timings</code> field set to |timings|.
|cookies|, the <code>headersSize</code> field set to |headers size|, the
<code>bodySize</code> field set to |body size|, the <code>destination</code>
field set to |destination|, the <code>initiatorType</code> field set to
|initiator type|, and the <code>timings</code> field set to |timings|.

</div>

Expand Down
Loading