From ec79f3a58a44c9ea60a82f9cd2df4c8f19e82ab8 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Thu, 23 Jun 2022 13:20:42 +0200 Subject: [PATCH] feat: add experimental `client` to `HTTPRequest` (#8556) --- src/common/HTTPRequest.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/HTTPRequest.ts b/src/common/HTTPRequest.ts index d193ee8a342c6..98cb66de9c724 100644 --- a/src/common/HTTPRequest.ts +++ b/src/common/HTTPRequest.ts @@ -157,6 +157,15 @@ export class HTTPRequest { #interceptHandlers: Array<() => void | PromiseLike>; #initiator: Protocol.Network.Initiator; + /** + * Warning! Using this client can break Puppeteer. Use with caution. + * + * @experimental + */ + get client(): CDPSession { + return this.#client; + } + /** * @internal */