From 270675a89fd3bfffd8be6e71c2dcbb823ed1b71e Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 23 Jun 2022 18:58:17 -0700 Subject: [PATCH] =?UTF-8?q?cherry-pick(#15097):=20docs:=20recordHar=20cont?= =?UTF-8?q?ent=20and=20mode=20options=20for=20lan=E2=80=A6=20(#15098)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/api/params.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 0d5a2ba234..3ae8ec4bd6 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -586,6 +586,20 @@ call [`method: BrowserContext.close`] for the HAR to be saved. Optional setting to control whether to omit request content from the HAR. Defaults to `false`. +## context-option-recordhar-content +* langs: csharp, java, python + - alias-python: record_har_content +- `recordHarContent` ?<[HarContentPolicy]<"omit"|"embed"|"attach">> + +Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification. + +## context-option-recordhar-mode +* langs: csharp, java, python + - alias-python: record_har_mode +- `recordHarMode` ?<[HarMode]<"full"|"minimal">> + +When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`. + ## context-option-recordhar-url-filter * langs: csharp, java, python - alias-python: record_har_url_filter @@ -807,6 +821,8 @@ An acceptable perceived color difference in the [YIQ color space](https://en.wik - %%-context-option-recordhar-%% - %%-context-option-recordhar-path-%% - %%-context-option-recordhar-omit-content-%% +- %%-context-option-recordhar-content-%% +- %%-context-option-recordhar-mode-%% - %%-context-option-recordhar-url-filter-%% - %%-context-option-recordvideo-%% - %%-context-option-recordvideo-dir-%%