From 62dda1c90f2ac14b8b41298a9219279eb44a8036 Mon Sep 17 00:00:00 2001 From: Mohammed Shah Date: Wed, 22 Jun 2022 16:23:19 +0100 Subject: [PATCH 1/2] Expose #client via `client()` on HTTPRequest This will allow the puppeteer-page-proxy project a path to working again with the latest versions of puppeteer --- src/common/HTTPRequest.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/HTTPRequest.ts b/src/common/HTTPRequest.ts index d193ee8a342c6..c111d8765bf40 100644 --- a/src/common/HTTPRequest.ts +++ b/src/common/HTTPRequest.ts @@ -195,6 +195,14 @@ export class HTTPRequest { url(): string { return this.#url; } + + + /** + * @returns the respective client of the request + */ + client(): string { + return this.#client; + } /** * @returns the `ContinueRequestOverrides` that will be used From feeebf127bbc7a32798b7141ac0c7a4fd1570a3d Mon Sep 17 00:00:00 2001 From: Mohammed Shah Date: Wed, 22 Jun 2022 16:30:14 +0100 Subject: [PATCH 2/2] change `client()` to `_client()` This keeps in line with the method call on `Page` --- src/common/HTTPRequest.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/HTTPRequest.ts b/src/common/HTTPRequest.ts index c111d8765bf40..5161a5083311c 100644 --- a/src/common/HTTPRequest.ts +++ b/src/common/HTTPRequest.ts @@ -196,11 +196,10 @@ export class HTTPRequest { return this.#url; } - /** * @returns the respective client of the request */ - client(): string { + _client(): string { return this.#client; }