///
import IHttpResourceLoadDetails from './IHttpResourceLoadDetails';
export declare type IPuppetResourceRequest = Omit & {
frameId?: string;
redirectedFromUrl?: string;
};
export interface IPuppetNetworkEvents {
'navigation-response': {
browserRequestId: string;
frameId: string;
status: number;
location?: string;
url?: string;
loaderId: string;
};
'websocket-frame': {
browserRequestId: string;
message: string | Buffer;
isFromServer: boolean;
};
'websocket-handshake': {
browserRequestId: string;
headers: {
[key: string]: string;
};
};
'resource-will-be-requested': {
resource: IPuppetResourceRequest;
redirectedFromUrl: string;
isDocumentNavigation: boolean;
frameId: string;
loaderId?: string;
};
'resource-was-requested': {
resource: IPuppetResourceRequest;
redirectedFromUrl: string;
isDocumentNavigation: boolean;
frameId: string;
loaderId?: string;
};
'resource-loaded': {
resource: IPuppetResourceRequest;
frameId?: string;
loaderId?: string;
body(): Promise;
};
'resource-failed': {
resource: IPuppetResourceRequest;
};
}