PerformanceServerTiming

The PerformanceServerTiming interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.

MDN Reference

Properties

Link copied to clipboard

The description read-only property returns a string value of the server-specified metric description, or an empty string.

Link copied to clipboard

The duration read-only property returns a double that contains the server-specified metric duration, or the value 0.0.

Link copied to clipboard

The name read-only property returns a string value of the server-specified metric name.

Functions

Link copied to clipboard
fun toJSON(): JsAny

The toJSON() method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.