Skip to content

Commit

Permalink
Add finalResponseHeadersStart which is always the 2xx/4xx/5xx respons…
Browse files Browse the repository at this point in the history
…e. (#408)

responseStart now returns `firstInterimResponseStart` as before, but
falls back to `finalResponseHeadersStart` if there is no interim response.

Closes #345
  • Loading branch information
noamr authored Nov 4, 2024
1 parent 5aaabb7 commit 058d390
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ <h3>
readonly attribute DOMHighResTimeStamp connectEnd;
readonly attribute DOMHighResTimeStamp secureConnectionStart;
readonly attribute DOMHighResTimeStamp requestStart;
readonly attribute DOMHighResTimeStamp finalResponseHeadersStart;
readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
readonly attribute DOMHighResTimeStamp responseStart;
readonly attribute DOMHighResTimeStamp responseEnd;
Expand Down Expand Up @@ -636,12 +637,17 @@ <h3>
global object</a> for <a>this</a>. See [=/HTTP fetch=] for more info.
</p>
<p data-dfn-for="PerformanceResourceTiming">
The <dfn>responseStart</dfn> getter steps are to <a>convert fetch
The <dfn>finalResponseHeadersStart</dfn> getter steps are to <a>convert fetch
timestamp</a> for <a>this</a>'s <a data-for=
"PerformanceResourceTiming">timing info</a>'s [=fetch timing
info/final network-response start time=] and the <a>relevant global
object</a> for <a>this</a>. See [=/HTTP fetch=] for more info.
</p>
<p data-dfn-for="PerformanceResourceTiming">
The <dfn>responseStart</dfn> getter steps are to return <a>this</a>'s
{{PerformanceResourceTiming/firstInterimResponseStart}} if it is not 0; Otherwise
<a>this</a>'s {{PerformanceResourceTiming/finalResponseHeadersStart}}.
</p>
<p data-dfn-for="PerformanceResourceTiming">
The <dfn>responseEnd</dfn> getter steps are to <a>convert fetch
timestamp</a> for <a>this</a>'s <a data-for=
Expand Down Expand Up @@ -978,6 +984,7 @@ <h3>
{{PerformanceResourceTiming/connectEnd}},
{{PerformanceResourceTiming/requestStart}},
{{PerformanceResourceTiming/firstInterimResponseStart}},
{{PerformanceResourceTiming/finalResponseHeadersStart}},
{{PerformanceResourceTiming/responseStart}},
{{PerformanceResourceTiming/secureConnectionStart}},
{{PerformanceResourceTiming/transferSize}},
Expand Down

0 comments on commit 058d390

Please sign in to comment.