From 4ce8b93fb22d70ca56bb1ddfde3c2f9fec8921a6 Mon Sep 17 00:00:00 2001 From: aviu16 <162624394+aviu16@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:26:16 -0500 Subject: [PATCH] doc: add missing PerformanceResourceTiming properties these 5 properties were implemented but never got documented: initiatorType, nextHopProtocol, responseStart, deliveryType, responseStatus Fixes: https://github.com/nodejs/node/issues/55793 --- doc/api/perf_hooks.md | 84 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 54dcbe873236aa..4ebcf34b664620 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -906,6 +906,25 @@ resources. The constructor of this class is not exposed to users directly. +### `performanceResourceTiming.initiatorType` + + + +* Type: {string} + +A string representing the type of resource that initiated the performance +entry. The value depends on the context in which the resource was fetched +(e.g. `'fetch'`). + ### `performanceResourceTiming.workerStart` + +* Type: {string} + +A string representing the network protocol used to fetch the resource, as +identified by the [ALPN protocol ID (RFC 7301)][]. When a proxy is used, if +a tunnel connection is established, this property returns the ALPN protocol +ID of the tunneled protocol. Otherwise, this property returns the ALPN +protocol ID of the first hop to the proxy. + ### `performanceResourceTiming.requestStart` + +* Type: {number} + +The high resolution millisecond timestamp representing the time immediately +after Node.js receives the first byte of the response from the server. + ### `performanceResourceTiming.responseEnd` + +* Type: {string} + +A string representing how the resource was delivered. The value is one of the +following: + +* `'cache'` if the resource was retrieved from the cache. +* `''` (empty string) otherwise. + +### `performanceResourceTiming.responseStatus` + + + +* Type: {number} + +A number representing the HTTP response status code returned when fetching +the resource. + ### `performanceResourceTiming.toJSON()`