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()`