Home Reference Source
public class | since chrome-remote-interface-extra | source

FrameResource

See:

Constructor Summary

Public Constructor
public

constructor(frameId: string, frameResourceInfo: CDPFrameResource, frameManager: FrameManager)

Member Summary

Public Members
public get

True if the resource was canceled during loading

public get

Resource content size

public get

True if the resource failed to load

public get

last-modified timestamp as reported by server

public get

Resource mimeType as determined by the browser

public get

type: string: *

Type of this resource

public get

url: string: *

Resource URL

Private Members
private
private
private

Method Summary

Public Methods
public

getContent(): Promise<Buffer>

Retrieve the contents of this frame resource

public

Public Constructors

public constructor(frameId: string, frameResourceInfo: CDPFrameResource, frameManager: FrameManager) source

Params:

NameTypeAttributeDescription
frameId string

The id of the frame this resource is associated with

frameResourceInfo CDPFrameResource

Information about the Resource on the page

frameManager FrameManager

The frame manager for the page this resource's frame came from

Public Members

public get canceled: boolean: * source

True if the resource was canceled during loading

Return:

boolean (nullable: true)

public get contentSize: number: * source

Resource content size

Return:

number (nullable: true)

public get failed: boolean: * source

True if the resource failed to load

Return:

boolean (nullable: true)

public get lastModified: number: * source

last-modified timestamp as reported by server

Return:

number (nullable: true)

public get mimeType: string: * source

Resource mimeType as determined by the browser

Return:

string

public get type: string: * source

Type of this resource

Return:

string

public get url: string: * source

Resource URL

Return:

string

Private Members

private _frameId: string source

private _frameManager: FrameManager source

private _frameResourceInfo: CDPFrameResource source

Public Methods

public getContent(): Promise<Buffer> source

Retrieve the contents of this frame resource

Return:

Promise<Buffer>

See:

public toJSON(): Object source

Return:

Object