From f15de8155d157451ec60bd21c03e1933c94d6a37 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Sun, 18 Dec 2022 08:47:48 +0200 Subject: [PATCH] Add interim response times Add 3 response times: - firstInterimResponseStart: the first 103 - responseHeadersEnd: All headers have been received - responseBodyStart: The body started streaming Closes #345 Depends on whatwg/fetch#1483 --- index.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/index.html b/index.html index 33f9218..7652954 100644 --- a/index.html +++ b/index.html @@ -367,7 +367,10 @@

readonly attribute DOMHighResTimeStamp connectEnd; readonly attribute DOMHighResTimeStamp secureConnectionStart; readonly attribute DOMHighResTimeStamp requestStart; + readonly attribute DOMHighResTimeStamp firstInterimResponseStart; readonly attribute DOMHighResTimeStamp responseStart; + readonly attribute DOMHighResTimeStamp responseHeadersEnd; + readonly attribute DOMHighResTimeStamp responseBodyStart; readonly attribute DOMHighResTimeStamp responseEnd; readonly attribute unsigned long long transferSize; readonly attribute unsigned long long encodedBodySize; @@ -681,6 +684,13 @@

info/final network-request start time=] and the relevant global object for this. See [=/HTTP fetch=] for more info.

+

+ The firstInterimResponseStart getter steps are to convert fetch + timestamp for this's timing info's [=fetch timing + info/first interim network-response start time=] and the relevant global + object for this. See [=/HTTP fetch=] for more info. +

The responseStart getter steps are to convert fetch timestamp for this's info/final network-response start time=] and the relevant global object for this. See [=/HTTP fetch=] for more info.

+

+ The responseHeadersEnd getter steps are to convert fetch + timestamp for this's timing info's [=fetch timing + info/final network-response headers end time=] and the relevant global + object for this. See [=/HTTP fetch=] for more info. +

+

+ The responseBodyStart getter steps are to convert fetch + timestamp for this's timing info's [=fetch timing + info/final network-response body start time=] and the relevant global + object for this. See [=/HTTP fetch=] for more info. +

The responseEnd getter steps are to convert fetch timestamp for this's {{PerformanceResourceTiming/connectStart}}, {{PerformanceResourceTiming/connectEnd}}, {{PerformanceResourceTiming/requestStart}}, + {{PerformanceResourceTiming/firstInterimResponseStart}}, {{PerformanceResourceTiming/responseStart}}, + {{PerformanceResourceTiming/responseHeadersEnd}}, + {{PerformanceResourceTiming/responseBodyStart}}, {{PerformanceResourceTiming/secureConnectionStart}}, {{PerformanceResourceTiming/transferSize}}, {{PerformanceResourceTiming/encodedBodySize}}, and