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

Add http method to fetch timing info #1632

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
6 changes: 5 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
<dd>A <a for=/>list</a> of strings.
<dt><dfn export for="fetch timing info">render-blocking</dfn> (default false)
<dd>A boolean.
<dt><dfn export for="fetch timing info">http method</dfn> (default: GET)
<dd> A {{ByteString}}
</dl>

<p>A <dfn export>response body info</dfn> is a <a for=/>struct</a> used to maintain
Expand Down Expand Up @@ -4231,7 +4233,9 @@ the response. [[!HTTP-CACHING]]
<li><p>Let <var>timingInfo</var> be a new <a for=/>fetch timing info</a> whose
<a for="fetch timing info">start time</a> and
<a for="fetch timing info">post-redirect start time</a> are the
<a for=/>coarsened shared current time</a> given <var>crossOriginIsolatedCapability</var>, and
<a for=/>coarsened shared current time</a> given <var>crossOriginIsolatedCapability</var>,
<a for="fetch timing info">http method</a> is set to <var>request</var>'s
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need the method info to be hidden when opaque, you may also want to add it to https://fetch.spec.whatwg.org/#create-an-opaque-timing-info.
^^ @noamr for thoughts

<a for=request>method</a>, and
<a for="fetch timing info">render-blocking</a> is set to <var>request</var>'s
<a for=request>render-blocking</a>.

Expand Down