feat: add experimental client to HTTPRequest (#8556)

This commit is contained in:
jrandolf 2022-06-23 13:20:42 +02:00 committed by GitHub
parent ebcb8a2760
commit ec79f3a58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,15 @@ export class HTTPRequest {
#interceptHandlers: Array<() => void | PromiseLike<any>>; #interceptHandlers: Array<() => void | PromiseLike<any>>;
#initiator: Protocol.Network.Initiator; #initiator: Protocol.Network.Initiator;
/**
* Warning! Using this client can break Puppeteer. Use with caution.
*
* @experimental
*/
get client(): CDPSession {
return this.#client;
}
/** /**
* @internal * @internal
*/ */