import FrameResource from 'chrome-remote-interface-extra/lib/frames/FrameResource.js'
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 |
contentSize: number: * Resource content size |
|
public get |
True if the resource failed to load |
|
public get |
lastModified: number: * last-modified timestamp as reported by server |
|
public get |
Resource mimeType as determined by the browser |
|
public get |
Type of this resource |
|
public get |
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:
Name | Type | Attribute | Description |
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 |