diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 0eca76ed9842..389465fda47c 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -1091,6 +1091,55 @@ changes: The high resolution millisecond timestamp representing the time immediately before Node.js receives the first byte of the response from the server. +### `performanceResourceTiming.finalResponseHeadersStart` + + + +* Type: {number} + +The high resolution millisecond timestamp representing the time immediately +after Node.js receives the first byte of the headers of the final response, +as opposed to an interim response. + +### `performanceResourceTiming.firstInterimResponseStart` + + + +* Type: {number} + +The high resolution millisecond timestamp representing the time immediately +after Node.js receives the first byte of the first interim response, such as +a `103 Early Hints` response. Node.js does not currently record interim +responses, so the property always returns 0. + +### `performanceResourceTiming.responseStart` + + + +* Type: {number} + +The high resolution millisecond timestamp representing the time immediately +after Node.js receives the first byte of the response from the server. This +is `firstInterimResponseStart` when it is non-zero, and +`finalResponseHeadersStart` otherwise. + ### `performanceResourceTiming.responseEnd` + +* Type: {string} + +The render blocking status of the resource. It is either `'blocking'` or +`'non-blocking'`. Resources fetched by Node.js are never render blocking, so +the property always returns `'non-blocking'`. + +### `performanceResourceTiming.contentType` + + + +* Type: {string} + +The minimized MIME type of the content of the fetched resource, or an empty +string if it cannot be determined. Node.js does not currently populate this +field, so the property returns an empty string. + +### `performanceResourceTiming.contentEncoding` + + + +* Type: {string} + +The content encoding, such as `'gzip'` or `'br'`, that was applied to the +fetched resource, or an empty string if none was applied or it cannot be +determined. Node.js does not currently populate this field, so the property +returns an empty string. + ### `performanceResourceTiming.toJSON()`