ResourceRequest

@native @JSType
trait ResourceRequest extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val frameId: Int

The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (type is main_frame or sub_frame), frameId indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab.

The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (type is main_frame or sub_frame), frameId indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab.

val parentFrameId: Int

ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists.

ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists.

val requestId: String

The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request.

The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request.

@JSName("type")
val resourceType: String

How the requested resource will be used. One of: "main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", or "other"

How the requested resource will be used. One of: "main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", or "other"

val tabId: Int

The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab.

The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab.

val timeStamp: Int

The time when this signal is triggered, in milliseconds since the epoch.

The time when this signal is triggered, in milliseconds since the epoch.

val url: String